Return to Snippet

Revision: 296
at July 8, 2006 20:14 by tjstankus


Updated Code
def create_something(options = {})
  Something.create({:option1 => \"foo\", :option2 => \"bar\"}.merge(options))
end

Revision: 295
at July 8, 2006 18:47 by tjstankus


Initial Code
  def create_something(options = {})
    Something.create({:option1 => \"foo\", :option2 => \"bar\"}.merge(options))
  end

Initial URL


Initial Description


Initial Title
Create with merge options

Initial Tags
rails

Initial Language
Ruby