Topic: Errors in another controller
Hi, I'm quite new to Rails and I'm having a little problem trying to figure out how to do some things the right way in Rails. I'm writing a simple blog application (surprise.).
So I have models and controllers for entries and comments. The comment fields are placed below the entry, so they are shown with controller "entry", and action "show". When errors occur while entering comments, I want to display them below the comment form, on the /entry/show page. But when I simply redirect there from /comment/new, the errors get lost. I also tried a custom error page, that simply includes /entry/show (via render), but that actually rendered nothing. And having the comment-entering stuff in the entry controller doesn't seem to be the right way.
Could anyone point me into the right direction?
Thanks in advance
Kolja