Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class UserController < ApplicationController
- respond_to :json
- def create
- # Will get the appropriate constructor based on the api's version and render a new User object
- @user = initialize_for_api(User, params[:user])
- respond_with @user
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment