Skip to content

Instantly share code, notes, and snippets.

@seivan
Created January 28, 2010 19:05
Show Gist options
  • Select an option

  • Save seivan/289025 to your computer and use it in GitHub Desktop.

Select an option

Save seivan/289025 to your computer and use it in GitHub Desktop.
def new
@comment = Comment.new(params[:form].merge(default_attributes))
end
def create
if @comment.save
,.....
end
private
default_attributes = {:name => cookies[:name], :email => cookies[:email.])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment