Guest User

Untitled

a guest
May 24th, 2012
20
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. class UserController < ApplicationController
  2. respond_to :json
  3.  
  4. def create
  5. # Will get the appropriate constructor based on the api's version and render a new User object
  6. @user = initialize_for_api(User, params[:user])
  7. respond_with @user
  8. end
  9. end
Advertisement
Add Comment
Please, Sign In to add comment