| Class | HomeController |
| In: |
app/controllers/home_controller.rb
|
| Parent: | ApplicationController |
Delete all data associated with the logged in user.
# File app/controllers/home_controller.rb, line 17
17: def delete
18: if request.post?
19: current_user.destroy_data
20: flash[:notice] = 'All data destroyed.'
21: end
22: redirect_to root_path
23: end