Questions tagged [hotwire]
45 questions
2
votes
1 answer
Best practices for handling HTTP 404 responses in Rails using Turbo Frames?
I'm thinking through how Turbo Streams work, mostly as a thought experiment. I understand the basics after building a simple toy application. It's pretty powerful that so much can be done with a handful of Turbo Frames.
It's interesting to be able…

Benjamin Oakes
- 12,262
- 12
- 65
- 83
1
vote
1 answer
Rails 7, Hotwire dynamic forms, updating value doesn't work
I've recently started using Hotwire for a project I'm working on. Have been following this tutorial on GoRails. Currently having some issues with adding / updating records in a dynamic form. I have two models with a belongs_to and has_many…

Anders
- 2,903
- 7
- 58
- 114
1
vote
1 answer
Network response with nested turboframe linking to same page doing a full html request?
I have a nested turbo frame
My controller is something like
def landing_page
@variable = params[:variable].present? ? params[:variable] : "hello"
end
The view for my landing page is:
<%= turbo_frame_tag "outer" do %>
<%= @variable…

APysnack
- 73
- 6
1
vote
2 answers
Add imaskjs with rails and hotwire stimulus but it doesn't work
I'm trying to make stimulus controller to mask 2 input field, "gross revenue" and "operating cost" to display thousand separator on both fields. I've tried imaskjs with stimulusjs, but I don't know why it doesn't werk at all.

butterxfast
- 11
- 2
1
vote
0 answers
rails turbo frame load new pages instead of showing " Response has no matching" error
i am on rails 7 trying out the turbo frame.
supposedly my code should fire a Response has no matching error because i do not have the similar id in the new page after clicking the new link. however it just loads the new page as usual, contradict…

ckeat9
- 162
- 1
- 14
1
vote
0 answers
Can I visit external urls with turbo native without opening external browser?
I have a web application that uses turbo and now I want to create a web application using turbo native. However, I need to do some redirecting to external urls for identification and it won’t work if the external urls are opened in an external web…

samueletc
- 13
- 5
1
vote
0 answers
Rails 7 Bootstrap Dropdown is adding # to url
I have the most frustrating issue on my rails 7 app. None of my bootstrap drop downs(dropdown buttons or dropdown nav) will work, they add a hash to my url.
I am using the jumpstart template https://github.com/excid3/jumpstart
For instance when I…

Joe Bloggos
- 889
- 7
- 24
1
vote
2 answers
Hotwire/Turbo with rails : paging
I would like to implement a simple paging system with turbo
Title
<%= turbo_frame_tag "page" do %> current page : <%= params[:page] %> <% end %>other content
<%= turbo_frame_tag "next" do %>
stani gam
- 57
- 5
1
vote
1 answer
How to clear form after submission in rails using (stimulus) hotwire?
I have a form which creates a new post, and a stimulus controller that clears the input fields after submission. However, it does this before the input values reach my rails controller.
This is my form_controller.js
import { Controller } from…

def avi
- 506
- 6
- 10
1
vote
2 answers
rails turbo_stream is not working on a rails 7 application
I am trying to submit a form and return a turbo_stream on a rails 7.0 application.
In my form I have the following.
<%= form_with url: "/request_trial", method: :post, format: :turbo_stream do |form| %>
<%= form.label :name,…

user17914516
- 119
- 3
- 8
0
votes
0 answers
Hotwire Turbo Frame in Django application stops django-bootstrap-datepicker-plus from showing
In my Django App I use a Turbo Frame in a DetailView. The Turbo Frame loads a form into the DetailView. This form has a datefield for which I use a Datepicker (django-bootstrap-datepicker-plus). If I call the form directly the Datepicker works just…

Laurens Pohl
- 1
- 1
0
votes
0 answers
How to use Hotwire with codeigniter?
Initially, I was intrigued by livewire when I saw someone using livewire. But it turns out that after I checked, livewire can only run on Laravel. Meanwhile, I myself have only used code igniter. Then, I looked for an alternative and it came across…

Santo Doni Romadhoni
- 71
- 1
- 8
0
votes
0 answers
Hotwire Flash notification not working and not updating UI
controller.rb
def create
flash[:alert] = 'some error message'
turbo_frame_updates
end
private
def turbo_frame_updates
# Define the Turbo Frame(s) you want to update
[
turbo_stream.update("flash_messages") do
…

Vaibhav
- 858
- 10
- 13
0
votes
1 answer
Need help understanding turbo in rails 7
Everything all around is just acting weird. I can create todo objects but they are only displayed after I refresh, I have had this same issue on 2 separate occasions. I know that I am using the variables wrong but with so much going on it's hard for…

gage
- 1
0
votes
0 answers
Module Not Found Error for '@hotwired/stimulus-loading' in Webpack Dev Server
I'm encountering an error when running the bin/webpack-dev-server command in my project. The error message states 'Module not found: Error: Can't resolve '@hotwired/stimulus-loading' in [path/to/project]'. I have checked my project configuration and…