By EApubs
via stackoverflow.com
Submitted: Jan 20 2013 / 10:46
In my app, I have created a form to create new posts (Post is a model). I have a controller with the name posts. The form is located in the admins controller. The form use the form_for(@post). It post to the post controller. In this method, the post gets created successfully. But the problem is with failed submissions. In the form, I have added the code to show the errors...
Add your comment