search for: update_password

Displaying 6 results from an estimated 6 matches for "update_password".

2007 May 23
6
RESTful RESOURCE PARTIAL UPDATE
...am using restful_authentication with the login email password validations defined. class users_controller edit_email edit_login edit_password update_email if update_attr save else render => edit_email update_login if update_attr save else render => edit_login update_password @curr_pass = params[:curr+passs] if update_attr save else render => edit_password end i have made routes edit_email_path edit_login_path edit_password_path update_email_path update_login_path update_password_path I can get the update_email and update_login to work if I avoid setting passwo...
2007 May 03
2
Multiple Update Actions that are Relatively the same
Hi there, I have 2 actions that are rather identical: # Put /account/you/update_password def update_password @user = current :user respond_to do |format| if @user.update_attributes(params[:user]) format.html {redirect_to account_url} else format.html {render :action => "edit_password"} end end end # PUT /account/you #...
2006 Jan 13
2
Change Password with acts_as_authenticated
I want to have a form to change a users password. I can''t figure out what the method in the controller should look like. I tried @user.save and @user.update_attributes, but can''t get it to work. My Form: ############################## <%= start_form_tag :action => "update_password", :id => @user.id %> <%= password_field ("user", "password", :size => 20) %> <%= password_field ("user", "password_confirmation", :size => 20) %> <%= submit_tag "Change Password" %> <%= end_form_tag %> In My...
2008 Aug 26
5
undefined method
I''m trying to pass a method to another object/method as a variable. Example one, login 1 works just fine. def login1 @driver.Login(username, password) end However, if I try to pass "Login" to the driver as an argument (example two Login 2), I get "undefined method `command_string'' for #<SOAP::RPC::Driver:0x316dc28>" "Login" is a legit
2007 Oct 29
2
error message after upgrading to Gusty Gibbon Ubuntu
...s/userController#create wrong number of arguments (1 for 0) RAILS_ROOT: script/../config/.. Application Trace | Framework Trace | Full Trace app/models/user.rb:17:in `initialize'' app/models/user.rb:17:in `new'' app/models/user.rb:17:in `hashed'' app/models/user.rb:35:in `update_password'' /var/lib/gems/1.8/gems/activerecord-1.15.1/lib/active_record/ callbacks.rb:333:in `send'' /var/lib/gems/1.8/gems/activerecord-1.15.1/lib/active_record/ callbacks.rb:333:in `callback'' /var/lib/gems/1.8/gems/activerecord-1.15.1/lib/active_record/ callbacks.rb:330:in `each...
2007 Oct 24
8
validates_confirmation_of not working
...xample straight from the documentation and it is not working. First when I try: validates_confirmation_of :password, :on => :password_update (password_update is a def in my User model which works fine without this validation in please) I get the following error: TypeError in UsersController#update_password nil is not a symbol [Full trace at the end of this message.] However, if I do only this: validates_confirmation_of :password It jumps over the validation because no matter what I put in the password and password_confirmation fields, changes are always saved. Any advice, greatly appreciated. T...