Improving form_with Errors in Rails Discussion
Discussion for
Improving form_with Errors in Rails
@Collin, this was a great video, but the crown jewel was learning about the existence of <% fail %>, thank you!
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 :)