120 Experience
1 Lesson Completed
0 Questions Solved


Posted in How to use Devise with Hotwire & Turbo.js Discussion

Hi @Santiago Rodriguez, could you explain better how is this change of devise_error_templateto flash to notify the error on the Login page? I am with the same issue.

Posted in How to use Hotwire in Rails Discussion

Hi, I was trying that also, I think I was able to make it work:

on _tweet.html.erb I added

 <%= link_to "Delete", tweet_path(tweet), method: :delete, data: { turbo_method: "delete" } %>

on tweets_controller:

format.turbo_stream { render turbo_stream: turbo_stream.replace(@tweet, partial: "tweets/form", locals: { tweet: @tweet}) }

Not sure if is the correct way to make it work, but worked for me.

logo Created with Sketch.

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

© 2022 GoRails, LLC. All rights reserved.