Class: Authorio::UsersController
- Inherits:
-
AuthorioController
- Object
- ActionController::Base
- AuthorioController
- Authorio::UsersController
- Defined in:
- app/controllers/authorio/users_controller.rb
Instance Method Summary collapse
-
#edit ⇒ Object
GET /users/:id/edit.
-
#show ⇒ Object
GET /users/:id.
-
#update ⇒ Object
PATCH /users/:id.
-
#verify ⇒ Object
This is only called by IndieAuth clients who wish to verify that a user profile URL we generated is in fact ours.
Methods inherited from AuthorioController
#authorized?, #current_user, #index, #logged_in?, #profile_url, #rememberable?, #user_scope_description, #user_session
Instance Method Details
#edit ⇒ Object
GET /users/:id/edit
13 14 15 |
# File 'app/controllers/authorio/users_controller.rb', line 13 def edit @user = User.find(params[:id]) end |
#show ⇒ Object
GET /users/:id
8 9 10 |
# File 'app/controllers/authorio/users_controller.rb', line 8 def show @user = User.find(params[:id]) end |
#update ⇒ Object
PATCH /users/:id
18 19 20 21 22 |
# File 'app/controllers/authorio/users_controller.rb', line 18 def update User.find(params[:id]).update(user_params) flash[:info] = 'Profile Saved' redirect_to edit_user_path end |
#verify ⇒ Object
This is only called by IndieAuth clients who wish to verify that a user profile URL we generated is in fact ours.
26 |
# File 'app/controllers/authorio/users_controller.rb', line 26 def verify; end |