Skip to content
New issue

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

can't edit posts #6

Open
dudethatbe opened this issue Oct 5, 2014 · 4 comments
Open

can't edit posts #6

dudethatbe opened this issue Oct 5, 2014 · 4 comments
Labels

Comments

@dudethatbe
Copy link

i created a new post, and wanted to edit the title. I get an error when i click submit on post/16/edit 🐟

@dudethatbe dudethatbe added the bug label Oct 5, 2014
@dudethatbe
Copy link
Author

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

@mcfiredrill
Copy link
Member

It should be post_params instead of show_params

@mcfiredrill
Copy link
Member

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

@yeahimfreaky
Copy link

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants