/ Published in: Ruby
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
def create_something(options = {}) Something.create({:option1 => \"foo\", :option2 => \"bar\"}.merge(options)) end