Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def fill_profile
- @user = current_user
- if @user.update_attributes(params[:user])
- flash[:notice] = "Account updated!"
- redirect_to :action => "home"
- else
- render :action => :fill_profile
- flash[:notice] = "Fill all required fields!"
- end
- end
Add Comment
Please, Sign In to add comment