All Questions
Tagged with ruby hotwire-rails
44
questions
0
votes
0
answers
18
views
Issue with rails hotwire trix textarea resize
im trying to create a textarea resize grippie more or less like the SO for a trix textarea with rais stimulus so i set this controller below
the issue is when i pull down the textarea the textarea ...
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
68
views
Rails Turbo Frames: "Content missing" after Update-action (View doesn't update)
I like to use Turbo Frames in my existing Rails-App.
index.view looks now this way:
<h1>Projects List</h1>
<div><strong><%= pluralize(@projects.size, "Project") %> ...
1
vote
1
answer
91
views
How to create a dynamic user form with Devise and Hotwire
I have devise installed as authentication system in my Rails 7 app. I want to be able to create dynamic forms for organization and individual user types using hotwire. That is, when I click on ...
1
vote
1
answer
233
views
Connection issues with turbo streams and custom action cable channel
I'm trying to setup a turbo stream connection with a custom action cable channel from an erb view like this:
View
<%= turbo_stream_from "image_viewer_#{@image.id}", channel: "...
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 ...
0
votes
0
answers
43
views
How to update independent pieces of a web page with turbo frames and turbo streams in ruby on rails
Am building a blog post and i have a model named comments, i have
used the same model also for replies .
comment.rb
class Comment < ApplicationRecord
include ActionView::Helpers
belongs_to ...
1
vote
1
answer
280
views
Turbo Streams in Rails 7
I have been following this tutorial https://www.youtube.com/watch?v=TKIbtbYyRdE&list=PL6SEI86zExmvb4qjVHJWrKRQrKjWksQ81&index=34 followed by its 2nd part
https://www.youtube.com/watch?v=...
1
vote
0
answers
109
views
Rails 7 Turbo Stream renders black page
In my Rails 7 app I've got a simple web form where user has an input text field and submit button. After user provide some text inside of the field and push the submit button, 3rd party request is ...
0
votes
0
answers
133
views
Hotwire/Rails: Cleanest way to handle updating content under a modal that can be opened from multiple places?
Somewhat new to hotwire. Come from a rails api/react background so perhaps that's messing me up.
I have a modal that can be opened from many places within my app. We can call it _foo_modal.html.erb. ...
0
votes
1
answer
42
views
Controller processing with HTML in rails
I set a turbo_frame_tag at profile/follow_button like
<%= turbo_frame_tag "#{dom_id(@user)} follow_user" do %>
<% if following?(user) %>
<%= link_to "Unfollow",...
0
votes
1
answer
48
views
Trying to understrand how Turbo works in Ruby on Rails
I created a small example in Ruby on Rails trying to understand how Turbo works in Ruby on Rails, this is what I did:
This is the index.html.erb, the idea here is to have a form with the list of posts ...
2
votes
1
answer
1k
views
How to autoscroll when a new partial is rendered by turbo frame?
i'm having a little trouble trying to force a scrolling with javascript when a new partial are rendered by turbo-frame, the page have an small form, and when the button are clicked, he triggers an ...