datafruits / datafruits.old

(old) rails app that powers www.datafruits.fm
1 stars 0 forks source link

can't edit posts #6

Open dudethatbe opened 9 years ago

dudethatbe commented 9 years ago

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

dudethatbe commented 9 years ago

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 :question:

mcfiredrill commented 9 years ago

It should be post_params instead of show_params

mcfiredrill commented 9 years ago

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 commented 9 years ago

:+1: