Questions tagged [turbo-rails]
67 questions
0
votes
0 answers
Rspec request test for a rails 7.0 returns an integer
I have a rails 7.0 application in which I retrieve all the items and display them in the view.
class ItemsController < ApplicationController
def index
@items = Item.all
end
In my view I render all the items.
<%…

Petros Kalafatidis
- 575
- 5
- 15
0
votes
1 answer
Rails Hotwire + Admin Namespace
I have an app running rails 6.1.3.2. I'm starting to migrate to use hotwire instead of ujs. My app uses an admin namespace to allow a user to make edits, create items via this. Example route below -
resources :event_attachments
namespace :admin do
…

Arash Hadipanah
- 115
- 9
0
votes
0 answers
Rails Turbo Frame Tag wrong number of arguments error
I've upgraded to rails 6.1 from rails 6.0 and trying out Hotwire, but I am getting an error when trying to run my application:
wrong number of arguments (given 0, expected 1..4)
Extracted source (around line #1):
<%= turbo_frame_tag 'branch' do %>…

doer123456789
- 369
- 1
- 7
- 22
0
votes
1 answer
Rails turbo frame response not firing turbo:load
I have a standard inline edit using Turbo, that replaces the turbo frame of the show view with the turbo frame in the _form. But the $(document).on "turbo:load", -> event is not firing in this case.
I don't see another event that should be used.…

rigyt
- 2,219
- 3
- 28
- 40
0
votes
1 answer
No bin/bundle file in Rails 6.1, can't get TURBO_STREAM request format
when I run
rails turbo:install
it gives Errno::ENOENT: No such file or directory - bin/bundle
There is no bin/bundle file, in a new rails 6.1.3 app, with the turbo-rails gem (v0.5.9)
I don't know if this is related to the fact a request won't send…

rigyt
- 2,219
- 3
- 28
- 40
-2
votes
1 answer
Why is Turbo Stream not updating unless I add a delay?
Turbo is slow on JavaScript side that I am forced to delay Ruby side. If I don't delay the server response, there are no turbo stream updates on the page. My logs show every turbo stream is rendering and all the jobs get executed and…

Chiara Ani
- 918
- 7
- 25