Комментарии:
It's 3 AM here, this video went up way too late 😅
I'm gonna go sleep before I work on tomorrow morning's video haha help me
Been working in rails since 2005. This video seems rushed with an unclear objectve and use case.
ОтветитьNice video! Curious, is there an advantage to wrapping the form in a turbo frame instead of just adding an id of "new-post" directly to the form tag?
ОтветитьI agree. I am pretty inconsistent when it comes to using it. and I have both approach on the same app 😞 Nice tutorial, especially the part about rendering errors.
ОтветитьThanks!
ОтветитьLove you video's but in this one, you don't have to define locals: {post: @post} in the controller. the new.turbo_stream.erb or the create.turbo_stream.erb, can be treated like a normal .html.erb file, so you can use instance variables directly in them. Keeps your controllers a bit clearer in my opinion.
Ответить