Class HomeController
In: app/controllers/home_controller.rb
Parent: ApplicationController

Methods

about   api   delete   delete_items   index   learn  

Public Instance methods

[Source]

    # File app/controllers/home_controller.rb, line 10
10:   def about
11:   end

[Source]

   # File app/controllers/home_controller.rb, line 7
7:   def api
8:   end

Delete all data associated with the logged in user.

[Source]

    # 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

Delete all items associated with the logged in user.

[Source]

    # File app/controllers/home_controller.rb, line 26
26:   def delete_items
27:     if request.post?
28:       current_user.destroy_items
29:       flash[:notice] = 'All item data destroyed.'
30:     end
31:     redirect_to root_path
32:   end

[Source]

   # File app/controllers/home_controller.rb, line 4
4:   def index
5:   end

[Source]

    # File app/controllers/home_controller.rb, line 13
13:   def learn
14:   end

[Validate]