All Questions
Tagged with ruby-on-rails turbolinks
757
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
24
views
Rails Turbolinks not working when promoting to production on Heroku
I have the following setup:
Rails 7 app, Turbolinks (loading/compiling via sprockets)
local dev environment -> localhost
staging on Heroku -> appstaging.herokuapp.com
production on Heroku (1st ...
0
votes
1
answer
60
views
Rails 7 with turbo
I have a rails 7 app and this is my package.json file:
{
"name": "app",
"private": true,
"dependencies": {
"@fortawesome/fontawesome-free": ...
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
0
answers
40
views
Rails 7 Delete links insidea turboframe with dataturbo false are not pointing to delete action
I follow this reference Delete link sends Get request instead of Delete Rails 7
But looks like It is not working for me
I have this link inside a turbo_frame
<%= link_to t("delete"), ...
0
votes
2
answers
117
views
How execute js code in rails 7 'create.turbo_stream.erb' file
here is my comment controller code
def create
@comment = current_user.comments.new(comment_params)
@feed = Feed.find(params[:comment][:feed_id])
@comment.commentable = @feed
@...
0
votes
0
answers
177
views
Rails 7, How to create file download with button?
Rails 7.1.3
I want to offer a file download to the user with either a button_to or a link_to.
View:
<%= button_to "Download Cat Photo", controller: "my_cont", action: "...
1
vote
2
answers
39
views
Ruby on Rails link_to renders multiple times
I have an index page that shows multiple shipment cards. I want to wrap each of these shipments in a link_to that will visit the show page of the shipment. For some reason, when I inspect the HTML in ...
0
votes
0
answers
33
views
link_to render de the view of destiny before action rails
Thanks for your atenttion, when i pass the pointer over the link, this link_to render the view of destiny but not redirect to the view, only in the terminar appear the GET action, i think this was ...
1
vote
0
answers
31
views
Terminating turbolinks:click event listener once a user has navigated away from a form
I have been tasked with creating an unsaved changes alert in a form partial for a Ruby on Rails app (full MVC architecture). While not new to Rails, I am new to Views, turbolinks, and jquery and have ...
0
votes
1
answer
228
views
Rails 7 with Turbo & jQuery not working / only working at first page load
I am using Rails 7 with the default turbo installation. I also want to use Materialize CSS and jQuery. The jQuery $(document).ready... functions work on first page load but not ever after.
This is a ...
0
votes
1
answer
105
views
How to integrate 3rd party javascript with turbo drive
I have a rails app using turbo. My live chat app breaks on any page navigation as the elements created for it are removed as the DOM refreshes. Is there a generally accepted solution to this?
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: "...
0
votes
0
answers
19
views
Trouble with Slideshow Images Stacking on Turbolinks Page Navigation in Rails
I am working on a Rails application that uses Turbolinks, and I'm encountering an issue with a JavaScript-based slideshow on my pages. The slideshow works fine on the initial page load, but when I ...