tracypholmes / comiks-tracker

Sinatra-based inventory tracker for comics!
https://comiks-tracker.herokuapp.com
0 stars 0 forks source link

ComicsController patch route #6

Open tracypholmes opened 7 years ago

tracypholmes commented 7 years ago

Tried updating


 #tried this with (params) and did not work!
        comic.update(title: params[:title], series_name: params[:series_name], creator: params[:creator], publisher: params[:publisher], published_date: params[:published_date], issue: params[:issue], media_type: params[:media_type])
        redirect to '/comics'```

with `comic.update(params)` however, it didn't like it when I did that. Things stopped working where it couldn't (?) find the patch. Will work on another time. For now, that bit of code is a tad verbose.