diff --git a/app/controllers/bookmarks_controller.rb b/app/controllers/bookmarks_controller.rb index f975aeb..181bb1f 100644 --- a/app/controllers/bookmarks_controller.rb +++ b/app/controllers/bookmarks_controller.rb @@ -63,7 +63,6 @@ def update @bookmark.dish_id = params[:dish_id] @bookmark.venue_id = params[:venue_id] - @bookmark.user_id = params[:user_id] @bookmark.notes = params[:notes] save_status = @bookmark.save @@ -73,7 +72,7 @@ def update case referer when "/bookmarks/#{@bookmark.id}/edit", "/update_bookmark" - redirect_to("/bookmarks/#{@bookmark.id}", :notice => "Bookmark updated successfully.") + redirect_to("/dishes/#{@bookmark.dish.id}", :notice => "Bookmark updated successfully.") else redirect_back(:fallback_location => "/", :notice => "Bookmark updated successfully.") end diff --git a/app/views/dishes/show.html.erb b/app/views/dishes/show.html.erb index 36415db..2825c2e 100644 --- a/app/views/dishes/show.html.erb +++ b/app/views/dishes/show.html.erb @@ -1,162 +1,81 @@ -