Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
0 votes
1 answer
55 views

Rails: problem with "@hotwired/turbo-rails" and redirects

// app/javascript/application.js import "@hotwired/turbo-rails" import "controllers" import "trix" import "@rails/actiontext" import Rails from "@rails/ujs&...
Steven's user avatar
  • 13
0 votes
0 answers
48 views

Rails: problem with handle redirect with turbo_stream in apps

In the application, when creating a feature, it was necessary to add hotwired/turbo-rails. // app/javascript/application.js import "@hotwired/turbo-rails" import "controllers" ...
Steven's user avatar
  • 13
0 votes
1 answer
49 views

Rails app not updating page when in responsive mode

I have an app built using Ruby 3.3, Rails 7 with import map and dart-sass for my asset-pipeline, the application uses bootstrap for css and coreui\coreui-admin as FE template. Saying that my error is ...
Guilherme Caixeta's user avatar
0 votes
3 answers
243 views

Rails 7 new app with --css bootstrap - turbo buttons won't work

When creating new app Rails 7 with rails new myapp --css bootstrap my turbo button won't work: = button_to "Sign out", edit_post_path, method: :delete, form: { data: { turbo_confirm: "...
Honker's user avatar
  • 1
1 vote
1 answer
256 views

Rails 7 + Turbo: Do not show loading state when navigating

I have a turbo frame set up in my Rails application that the user can navigate. The problem is that when a user navigates within the frame, the turbo frame takes a few moments to update during which ...
User12234327832's user avatar
1 vote
0 answers
439 views

Turbo Rails not working in production environment

I have successfully deployed my first Rails app on production mode to a Digital Ocean Droplet. I have developed the app in my local computer with some Turbo Frames working correctly, but in production ...
Fernando Schlosser's user avatar
0 votes
0 answers
127 views

When use 'data-turbolinks-track' page rendered twice (double rendering)

Synopsis application.html.erb: <head> ... <% if content_for?(:head) %> <%= yield :head %> <% end %> </head> ... View: <% content_for :head do %> <%= ...
infernal's user avatar
0 votes
0 answers
443 views

turbo frame tag for order_item quantity update rendering text on submission

I am trying to build a frame_tag where only the order quantity will be updated when the add/remove order item button is clicked. I am building a menu system and I have the add product to order items ...
Luke Littler's user avatar
0 votes
0 answers
306 views

Turbo Frame always targeting _top

I have a turbo frame within a rails app: <%= turbo_frame_tag :foo, :src => foo_path %> and inside this frame is a some simple html: <%= turbo_frame_tag :foo do %> <a href="...
Neil Middleton's user avatar
2 votes
1 answer
819 views

Rails 7 portfolio webpage seemingly wont load application.js unless reloaded

I took my first step into creating a website with my own two hands to much of my peril (being so new). That being said, I know I'm sloppy so please correct EVERY SINGLE DETAIL you can so I can learn :)...
Jack Gio Packham's user avatar
2 votes
0 answers
559 views

Whole page reloads when navigating using Turbo in Rails application

I recently began working on a documentation site using Ruby on Rails and Turbo (repository is here, and the website is here), and I'm having a slight issue with navigation. When I press the links in ...
George B's user avatar
  • 938
1 vote
0 answers
172 views

Using Turbo in Ruby on Rails app that was updated from 5.2 to 7

recently I updated the legacy Ruby on Rails application from version 5.2 to 7.0. I want to use Ruby on Rails 7.0 features like Turbo etc. Can I use turbo-rails gem with sprockets Asset Pipeline? I'm ...
Mateusz Urbański's user avatar
0 votes
1 answer
117 views

Rails 7 how to open table inside a row of another table

In my Rails 7 (with bootstrap) app I need to create a table with all users transaction that has on each row an arrow that when clicked on, expands that row inside which is a new table (that's what I ...
mr_muscle's user avatar
  • 2,840
1 vote
2 answers
964 views

My Jquery files are only loading on Refresh page rails 7

My Jquery files are only loading when page is refreshed. But when I remove (import "@hotwired/turbo-rails") from application.js It works normally. But removing "@hotwired/turbo-rails&...
Hammad Abdullah's user avatar
0 votes
3 answers
1k views

Rails js script code not working while screen back due to Turbolinks

In my rails app there is a JS script in partial view const f2s = window.document.createElement("script"); f2s.defer = true; (f2s.src = "https://face2.oktium.com/face2widget.js&...
Haseeb Ahmad's user avatar
  • 8,528

15 30 50 per page
1
2 3 4 5
7