Sha256: e9c88f50400154302a0744e7373cb26d263e98d3cb9195f70a22dbcaaf14cbf3
Contents?: true
Size: 367 Bytes
Versions: 1
Compression:
Stored size: 367 Bytes
Contents
class UsersController < ApplicationController respond_to :json, :html def new @user = User.new end def create debugger @user = User.create!(params[:user]) respond_with(@user, :location => root_url, :notice => "Signed up!") rescue VALIDATION_FAILED => e @user = e.document respond_with(@user, :location => new_user_path) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
leap_web_users-0.0.1 | app/controllers/users_controller.rb |