Questions tagged [turbo-rails]
67 questions
0
votes
1 answer
Undefined local variable or method "rendering_options" error for
I am a beginner and I have used this fix (https://medium.com/@nejdetkadir/how-to-use-devise-gem-with-ruby-on-rails-7-33b89f9a9c13) for making devise work with turbo forms in my previous project and it worked fine. But when I use it in my new project…

Rohan James
- 13
- 2
0
votes
1 answer
Turbo frame causes unexpected page layout
I currently used turbo-frame in a project which was using turbo-links, after I found that all the pages are disrupted by turbo-frames, such as the dropdown list became something looks like a input area (Sorry couldn't find the picture of that…

abcXYZ
- 119
- 2
- 7
0
votes
0 answers
jquery on('click', ()) method doesn't work properly in rails7
I am new to rails7 and I can't make jquery work properly.
Below simple code(change element's attribute by radio button value) doesn't work which it worked with Webpack(rails6).
app/javascript/application.js
// Configure your import map in…

マスターヨーダー
- 55
- 1
- 5
0
votes
0 answers
How to redirect to next question after showing the result for 2s Ruby on Rails / Turbo
I am working on a quiz functionality, and I'd like to show the user the results for 2s before redirecting him to the next question.
Here is my code to show the results to the user (it works):
def validate_answer
answer_given =…

Andrea Esposito
- 47
- 5
0
votes
1 answer
Ruby on Rails 7 + Turbo - Not showing notice message
I am learning Ruby on Rails. Rails 7 + Turbo stream... I am following a tutorial and I am having a problem with displaying the Notice message.
Can you help me understand why I am not getting notice message after I create a new quote?
Here is a…

Volkan
- 494
- 3
- 14
- 32
0
votes
0 answers
Ruby on Rails 7 - page loaded twice when use 'data-turbo-track': 'reload' on it
I use rails 7 with importmap. On view I added
<% content_for :head do %>
<%= javascript_include_tag 'path/to/script', 'data-turbo-track': 'reload' %>
<% end %>
for run script only on it. After that the page is always loaded twice when you go to…

infernal
- 23
- 4
0
votes
0 answers
Rails 7 + Hotwire/Turbo: `turbo_frame_tag` not rendering where it should
I'm creating a table and I want to render a turbo-frame tag around each row.
Here's the code in an html.erb file (see line 7).
1.
2.
3. ...
4.
5.
6. <%…