We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
some notes: http://blog.8thcolor.com/en/2011/08/nested-resources-with-independent-views-in-ruby-on-rails/ (very useful tutorial). A useful comment: If anyone else has the problem, I had to change the line in the create method from: @comment = post.comments.create(params[:comment]) to: @comment = post.comments.create(comment_params) Also, the same change in the update method
http://www.korenlc.com/rails-generate-model-vs-resourse-vs-scaffold/
figuring out how to implement the update function in comments_controller without having to create a new comment every time you update one: • https://gist.github.com/jhjguxin/3074080 • https://duckduckgo.com/?q=ruby+on+rails+find+params+update+ensted+resource&t=ffab&ia=qa • https://stackoverflow.com/questions/25100872/how-to-edit-update-a-nested-resource-on-rails-4 (maybe i could ask a similarly phrased question but with my specific situation?)
The text was updated successfully, but these errors were encountered:
generating separate scaffolds and linking resources afterwards worked
Sorry, something went wrong.
No branches or pull requests
some notes:
http://blog.8thcolor.com/en/2011/08/nested-resources-with-independent-views-in-ruby-on-rails/ (very useful tutorial). A useful comment:
If anyone else has the problem, I had to change the line in the create method from:
@comment = post.comments.create(params[:comment])
to:
@comment = post.comments.create(comment_params)
Also, the same change in the update method
http://www.korenlc.com/rails-generate-model-vs-resourse-vs-scaffold/
figuring out how to implement the update function in comments_controller without having to create a new comment every time you update one:
• https://gist.github.com/jhjguxin/3074080
• https://duckduckgo.com/?q=ruby+on+rails+find+params+update+ensted+resource&t=ffab&ia=qa
• https://stackoverflow.com/questions/25100872/how-to-edit-update-a-nested-resource-on-rails-4 (maybe i could ask a similarly phrased question but with my specific situation?)
The text was updated successfully, but these errors were encountered: