Method: NyrosForm2::UsersController#create
- Defined in:
- app/controllers/nyros_form2/users_controller.rb
#create ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'app/controllers/nyros_form2/users_controller.rb', line 17 def create @user = User.new(user_params) respond_to do |format| if @user.save format.html { redirect_to users_path, notice: 'Contact was successfully created.' } format.json { render json: @user, status: :created, location: @user } else format.html { render action: "new" } format.json { render json: @user.errors, status: :unprocessable_entity } end end end |