Skip to content

Instantly share code, notes, and snippets.

@kidpollo
Created June 5, 2013 21:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kidpollo/5717592 to your computer and use it in GitHub Desktop.
Save kidpollo/5717592 to your computer and use it in GitHub Desktop.
class V1::PostController < V1::BaseController
def create
@post = Post.new(params[:post])
@post.authorize
@post.save
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment