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?
https://devcenter.heroku.com/articles/smtp
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.
for example:
resources :events do resources :comments resources :pictures do :comments end end
def load_commentable if params[:picture_id] @commentable = Picture.find(params[:picture_id]) elsif params[:event_id] @commentable = Event.find(params[:event_id]) end end
Order from deepest nested resource down.
actually i cannot find a solution for this in the link i sent. have you solved it?
https://devcenter.heroku.com/articles/smtp
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.
for example:
Order from deepest nested resource down.