Looks like you have Casting has_many :comments, and you have a comment form on your Casting show page. If so, then you just need to render your casting show page. But this requires you to supply the Casting show page the @casting variable in your controller.
... else @casting = Casting.find(@castingcomment.casting_id) render 'casting/show.html.erb' end I would recommend that you not have a Castingcomment class. Say you need comments for different models, then you could have Anothermodelcomment class, etc. Consider having just a Comment model and create polymorphic associations from that model. Here's a refernce http://www.arailsdemo.com/posts/20 Here is some background for that post http://www.arailsdemo.com/posts/16 -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.