Ask A Question


You’re not receiving notifications from this thread.

Devise and Turbo-rails

susanSanjhya asked in 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 throwing NameError (undefined local variables or method 'rendering_options').

Following are gem and system versions.
ruby "3.1.3"
rails ""
@hotwired/turbo-rails "7.2.5".

Thank you in advance


I'm using Rails 7.0.4 and Devise bundled directly from Devise GitHub repo:

gem 'devise', github: 'heartcombo/devise', ref: 'f8d1ea90bc3'

I did multiple things to make it working with Turbo, but I didn't notice the rendering_options issue.
Could you please collaborate more?


Thank you for you kind suggestion.


It's great. I understand your approach already.


Cool! Thanks for your share, it's really useful for me.




thx, good job


Great suggestion.

Join the discussion

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

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

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

    Screencast tutorials to help you learn Ruby on Rails, Javascript, Hotwire, Turbo, Stimulus.js, PostgreSQL, MySQL, Ubuntu, and more. Icons by Icons8

    © 2023 GoRails, LLC. All rights reserved.