RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: richkuo
actually i cannot find a solution for this in the link i sent. have you solved it?
it basically 'overlooks' the validation you have in your user model
brilliant, thank you
Thank you Alain. I had nested resources with comments for both resources, and this worked for me.
resources :events do
resources :pictures do
@commentable = Picture.find(params[:picture_id])
@commentable = Event.find(params[:event_id])
Order from deepest nested resource down.