Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
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 ...
jjplack's user avatar
  • 113
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&...
Steven's user avatar
  • 13
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" ...
Steven's user avatar
  • 13
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") %> ...
cluster1's user avatar
  • 5,468
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 ...
Tolase Adegbite's user avatar
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: "...
evilGenious's user avatar
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: "...
Honker's user avatar
  • 1
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 ...
User12234327832's user avatar
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 ...
mutebi godfrey's user avatar
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=...
uma's user avatar
  • 63
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 ...
mr_muscle's user avatar
  • 2,840
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. ...
Isaiah Fasoldt's user avatar
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",...
quocanhcute's user avatar
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 ...
FerCib's user avatar
  • 3
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 ...
Thiago David's user avatar

15 30 50 per page