Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def signup
- return unless request.post?
- @user = User.new(params[:user])
- @user.save!
- #show list of users
- @users = User.find(:all)
- #logger.info("ian")
- rescue ActiveRecord::RecordNotFound
- render :action => 'signup'
- flash[:notice] = "Empty Fields"
- rescue ActiveRecord::RecordNotSaved
- render :action => 'signup'
- flash[:notice] = "Please fill up all the required fields"
- end
Add Comment
Please, Sign In to add comment