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
i created a new post, and wanted to edit the title. I get an error when i click submit on post/16/edit 🐟
The text was updated successfully, but these errors were encountered:
https://github.com/datafruits/datafruits/blob/master/app/controllers/shows_controller.rb#L42 should if @show.update_attributes(show_params) be if @show.update_attributes(params[:show])q ❓
if @show.update_attributes(show_params)
if @show.update_attributes(params[:show])q
Sorry, something went wrong.
It should be post_params instead of show_params
post_params
show_params
Thats the wrong controller, here its using params[:post] instead of post_params which is causing the error on update: https://github.com/datafruits/datafruits/blob/master/app/controllers/posts_controller.rb#L53
params[:post]
👍
No branches or pull requests
i created a new post, and wanted to edit the title. I get an error when i click submit on post/16/edit 🐟
The text was updated successfully, but these errors were encountered: