Class: BitesController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/bites_controller.rb

Instance Method Summary collapse

Instance Method Details

#updateObject



3
4
5
6
7
# File 'app/controllers/bites_controller.rb', line 3

def update
  bite = Bite.find(params[:id])
  bite.update!(text: params[:bite][:text])
  redirect_to :back
end