Created
August 8, 2011 21:17
-
-
Save roykolak/1132769 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Class Specialists::UsersController < ApplicationController | |
def new | |
@user = User.new | |
end | |
def create | |
@user = User.new(params[:user]) | |
if @user.save_without_session_maintenance | |
flash[:success] = 'Successfully created user!' | |
redirect_to specialists_user_path(@new_user) | |
else | |
flash.now[:error] = 'Problem creating user. Double check the form below.' | |
render :new | |
end | |
end | |
def show | |
@user = User.find(params[:id]) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment