All Questions
Tagged with ruby turbolinks
95
questions
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&...
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"
...
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 ...
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: "...
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 ...
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 ...
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 %>
<%= ...
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 ...
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="...
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 :)...
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 ...
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 ...
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 ...
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&...
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&...