Class: BitesController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- BitesController
- Defined in:
- app/controllers/bites_controller.rb
Instance Method Summary collapse
Instance Method Details
#update ⇒ Object
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 |