Class: FieldTest::MembershipsController

Inherits:
BaseController
  • Object
show all
Defined in:
app/controllers/field_test/memberships_controller.rb

Instance Method Summary collapse

Instance Method Details

#updateObject



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

def update
  membership = FieldTest::Membership.find(params[:id])
  membership.update!(membership_params)
  redirect_back(fallback_location: root_path)
end