Stimulus based ActionCable Subscriptions - possible race condition related to turbolinks preview?

0
Rails
Hi, I've been upgrading a legacy app to leverage Webpacker and Stimulus with the intention of moving to Hotwire eventually too. We have a few ActionCable (AC) channels used here and there and it se...
Craig Chamberlain posted

@mentions for Users with ActionText in Rails 6 Discussion

2
General
@chris this is an excellent feature. Is this implementation still the best way to achieve this using rails 8 and updated stimulus, action_text, action_mailer?
banshee nightmare replied

How do I fork turbo and use it as my turbo version

1
Rails
How do I fork turbo and use it as my turbo version in a rails 6 app, I tried linking to the github of my forked turbo repo in package.json but it gave me an error couldnt find hotwire
Solved

Extend stimulus controller - base class not found

2
Javascript
I want to extend the Stimulus controller to get some often used method in one place, like this: import {Controller} from "@hotwired/stimulus" ./controllers/base.js export default class Base exten...
MollySpencer72 replied

Rails for Beginners Part 16: Logging Out Users Discussion

3
General
Could you provide a little excerpt of why button_to is better than link_to for Hotwire? Or a link to the specific video and time? I'm sure it would be useful.
Andrés Ibáñez Ulloa replied

How do I create a sortable & searchable table with pagination?

2
Rails
Not really sure how to set this up with the different query params. Could someone point me in the right direction? Thanks!
Kevin Gutowski replied

Handling New Messages with Turbo Streams Discussion

6
General
In case you're interested, you can sign up for our [Learn Hotwire course](https://learnhotwire.com/) here. We're covering Hotwire with Rails and Native with iOS and Android, diving deep into the de...

How do I build a multi step wizard in ruby with StimulusJS

6
Ruby
Hi GoRails, I would like to make a multistep wizard in ruby on rails without making use of the wicked gem. Just stimulusJS and ruby :) Could you make a tutorial about that? Thanks in advance!
Fatih replied
Solved

ViewComponents and Tailwind CSS JIT

1
CSS
I created a flash view component to display flash messages. It does work, but the javascript trigger its display does not work as expected. Instead of displaying on the spot, it waits for like 5 s...
Stéphane Paquet replied
Solved

TailwindCSS Stimulus Components Gem not working in new rails 7 application

2
Gems / Libraries
Attempting to use the following gem in a new rails application: https://github.com/excid3/tailwindcss-stimulus-components Main reason is that the new supported tailwind gem that you can install di...
Bryan Beshore replied

"export 'default' (imported as 'Vue') was not found in 'vue'

1
Javascript
I'm following Chris' tutorial "Embeddable Javascript Comments Widget Models - Part 1" and I'm getting that error, any pointers on how to fix it? I'm running Rails 6.1.7.2 and my package.json looks...
Esteban Utz replied

Updated to Ruby 3.1.2, now targets in Stimulus Controllers not working

1
Javascript
I am using Rails 6 and recently upgraded from Ruby 3.0.1 to 3.1.2. Since the upgrade for some reason, my reflexes are no longer working properly when invoked from stimulus controllers, as shown in ...
Greg S replied

A Gorails "Path" series to learn the Rails way of doing Javascript?

2
General
Hey Chris. I'm coming back to Rails after some 2 years. While I'm able to pick things up, I'm confused by all the new rails way of doing Javascript and Ajax. Before I left, there was only stimulus...
Chris Oliver replied

How to setup Deno with Neovim's COC

0
Javascript
Hi, I am using Neovim, COC with LSP. I installed Deno for Javascript. It is Plug 'williamboman/nvim-lsp-installer' Plug 'prabirshrestha/vim-lsp' Plug 'neovim/nvim-lspconfig' Plug ...
phq posted

Stimulus not autoloading controllers

3
Javascript
Decided to give stimulus a try on a new app I am working on and immediately ran into issues. Up to this point this is a fresh rails 6.1 app and I have installed Hotwire-rails. Just using the hello...
Solved

Rails for Beginners Part 24: OmniAuth 2.0 URLs Discussion

53
General
I get an error `No route matches [GET] "/auth/twitter"` -- feels like some rails magic I missed :/
Philipp S. replied

Multiple Device support with Request Variants in Rails Discussion

5
General
Great video as always! How does this method compare with using responsive design with a CSS framework like Bootstrap or Tailwind? Is this a better method if you want a very specific or completely ...
Tabish Iqbal replied

Using Docker with Rails on M1 Mac

2
Rails
I have an M1 Mac and I always get errors for either sprocket-rails or nokogiri. I am using Ruby 3 and Rails 7. Is anyone using Docker with an M1 Mac and Ruby 3/Rails 7 with success? If so, could yo...

Devise and Turbo-rails

7
Rails
I've followed the guide for implementing devise with turbo-rails. It worked for few projects. But, when i tried to implement in new rails 7.0.4 project, the line render rendering_options is throwin...
Solved

Retrieving Link Metadata with Background Jobs Discussion

3
General
Posting here in case anyone else ran into the issue where they tried to run a test, but got the error of having pending database migrations (also after running db:migrate). For me what helped is r...
David Wilkinson replied

Want to stay up-to-date with Ruby on Rails?

Join 90,472+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.