From 1ea0dd0ffc37232d27f4fa1350af6ebb3b5439f2 Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Thu, 25 Oct 2012 11:59:41 +0300 Subject: App docs --- doc/app/ProfileController.html | 683 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 683 insertions(+) create mode 100644 doc/app/ProfileController.html (limited to 'doc/app/ProfileController.html') diff --git a/doc/app/ProfileController.html b/doc/app/ProfileController.html new file mode 100644 index 00000000000..deb4b0bcb67 --- /dev/null +++ b/doc/app/ProfileController.html @@ -0,0 +1,683 @@ + + + + + + +class ProfileController - Rails Application Documentation + + + + + + + + + + + + + + + + +
+

class ProfileController

+ +
+ +
+ + + + +
+ + + + + + + + + + +
+

Public Instance Methods

+ + +
+ +
+ design() + click to toggle source +
+ + +
+ + + + + +
+
# File app/controllers/profile_controller.rb, line 7
+def design
+end
+
+ +
+ + + + +
+ + +
+ +
+ history() + click to toggle source +
+ + +
+ + + + + +
+
# File app/controllers/profile_controller.rb, line 34
+def history
+  @events = current_user.recent_events.page(params[:page]).per(20)
+end
+
+ +
+ + + + +
+ + +
+ +
+ password_update() + click to toggle source +
+ + +
+ + + + + +
+
# File app/controllers/profile_controller.rb, line 18
+def password_update
+  params[:user].reject!{ |k, v| k != "password" && k != "password_confirmation"}
+
+  if @user.update_attributes(params[:user])
+    flash[:notice] = "Password was successfully updated. Please login with it"
+    redirect_to new_user_session_path
+  else
+    render action: "password"
+  end
+end
+
+ +
+ + + + +
+ + +
+ +
+ reset_private_token() + click to toggle source +
+ + +
+ + + + + +
+
# File app/controllers/profile_controller.rb, line 29
+def reset_private_token
+  current_user.reset_authentication_token!
+  redirect_to profile_account_path
+end
+
+ +
+ + + + +
+ + +
+ +
+ show() + click to toggle source +
+ + +
+ + + + + +
+
# File app/controllers/profile_controller.rb, line 4
+def show
+end
+
+ +
+ + + + +
+ + +
+ +
+ token() + click to toggle source +
+ + +
+ + + + + +
+
# File app/controllers/profile_controller.rb, line 15
+def token
+end
+
+ +
+ + + + +
+ + +
+ +
+ update() + click to toggle source +
+ + +
+ + + + + +
+
# File app/controllers/profile_controller.rb, line 10
+def update
+  @user.update_attributes(params[:user])
+  redirect_to :back
+end
+
+ +
+ + + + +
+ + +
+ +
+ +
+ + + + -- cgit v1.2.1