Ask A Question

Notifications

You’re not receiving notifications from this thread.

Improving form_with Errors in Rails Discussion

@Collin, this was a great video, but the crown jewel was learning about the existence of <% fail %>, thank you!

Reply

Hey Becky! Thanks a bunch, I'm glad you enjoyed it. And yes, fail is a handy one to have in your pocket! Also, if you want to do a similar thing but not cause the big error screen in the browser, you can replace <% fail %> with <% console %> and be able to look at instance variables and such in the console but also see your beautiful app! Both methods are available in your controllers as well :)

Reply

🤩

Reply

Thanks for sharing

Reply
Join the discussion
Create an account Log in

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

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

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