Questions tagged [turbo-frames]

47 questions
0
votes
0 answers

Turbo frame is (redirecting?) loading ONLY the frame (ONLY)

so I've been following this tutorial I have a problem with only the turbo frame loading My page has a form, that is auto submitted by stimulus controller, and then loads only the frame. it should remain on page http://localhost:3000/players/ but…
merof
  • 121
  • 7
0
votes
0 answers

Turbo-frame not adding task in same format

Turbo will add this task the following way to my tasks-table Test Test 2023-03-09 Low
A-laz
  • 55
  • 6
0
votes
0 answers

Create instance of a model remotely

I have a turns model that i want to create based off a card id and a user id, the user id is passed correctly, but the card id is nil. This is the card turbo frame <%= turbo_frame_tag "play_card_frame" do %> <%= render "turns/form", turn:…
0
votes
0 answers

Turbo frame rule Response has no matching

i am unable to reproduce turbo-frame error "Response has no matching " in my rails 7 application index.html.erb
<%= turbo_frame_tag "first_turbo_frame" do %>

Quotes

<%= link_to…
0
votes
1 answer

How can I make use of turbo frames correctly?

I have the next "controllers/pages_controller.rb": class PagesController < ApplicationController def home end def stack end def about end end I have the next "routes": Rails.application.routes.draw do root "pages#home" get 'home',…
0
votes
1 answer

Turbo Stream Rails does not update page

I am new to Ruby on Rails and need help with figuring out how Turbo Stream works in Rails. I did everything by tutorials, however, the content of the page was not updating. I decided to test how Turbo Stream will behave on simple div. In…
Liuba
  • 33
  • 8
0
votes
0 answers

Dynamically update parts of SVG with Turbo Flask?

This is my first web dev project. I have a small flask app hosted on a Raspberry Pi. I'm using turbo-flask to send updated data to the client(s) every second. I am updating parts of 3 large SVGs over the turbo steam every second. At times it stops…
0
votes
1 answer

Turbo Frames Issue with jQuery Append

Turbo frames are causing the jQuery script to not run if I navigate between tabs or pages. Below is my code. Any ideas on a workaround so the script continues to run even after the page url changes? $(document).ready(function() { …
Bronson77
  • 251
  • 2
  • 3
  • 11
0
votes
1 answer

Sorting table by nested models attribute in Rail with Turbo Frames

I am creating a table of Employees and I would like to sort by full_rate_pence, which is an attribute of HourlyRate. Each employee has_many hourly_rates which form a history of pay increases or decreases. The problem is trying to access the nested…
0
votes
0 answers

Hotwire Turbo Frame returning all records rather than single created record

I am using Hotwire Turbo Frame to create new record. My understanding was that when we create new record using Turbo Frame then only that single record will be replaced in index page rather than fetching all records from server. But when I look into…
r3b00t
  • 6,953
  • 6
  • 27
  • 37
0
votes
0 answers

Trigger stimulus event when target added/removed from DOM

I have what is essentially a form with multiple pages, where there is a partial which renders the form content for each page inside of a partial that contains the header, footer, "next" button. I need my "Next" button to respond dynamically to each…
0
votes
0 answers

Can I programmatically open a turbo_frame?

I have a list of documents(index.html.erb) where I can click a document to load details (show.html.erb) in a turbo_frame modal. This works well. There is a preview button that goes to a non turbo view for previewing an attachment. From here I want…
myself
  • 395
  • 4
  • 13
0
votes
1 answer

Turbo.remove() not working , while turbo.update still performed

i'm building an app with rails 7 and hotwire. I have a div with a invite message, when the invitation is declined, 2 actions should be triggered: I- Update my flash messages to display 'you declined the invitation' in my toaster (Working) II- Remove…
Sonfaya
  • 27
  • 6
0
votes
0 answers

Rails edit form update query error (turbo frames)

When I try to update a service and submit everything updates except the name that goes to the SQL query with the old value. The edit form: https://i.stack.imgur.com/YSZuD.png If I submit this I get this: ↳…
hugonuns
  • 11
  • 2
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