Skip to content

Instantly share code, notes, and snippets.

@ajsharp
Created July 25, 2011 22:55
Show Gist options
  • Select an option

  • Save ajsharp/1105474 to your computer and use it in GitHub Desktop.

Select an option

Save ajsharp/1105474 to your computer and use it in GitHub Desktop.
attributes :_id, :as => :id
attributes :name, :blah, :foo, :bar
offers do
attributes :foo, :bar
messages do
# ...
end
end
render "path/to/template", :object => @listing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment