Skip to content

Instantly share code, notes, and snippets.

Avatar

Kelly Sutton kellysutton

View GitHub Profile
View gist:1975644
class PostsController < ActionController::Base
def create
Post.create(post_params)
end
def update
Post.find(params[:id]).update_attributes!(post_params)
end
private
You can’t perform that action at this time.