https://github.com/mrkamel/render_object
Map an object to a partial.
https://github.com/mrkamel/render_object
Last synced: about 1 month ago
JSON representation
Map an object to a partial.
- Host: GitHub
- URL: https://github.com/mrkamel/render_object
- Owner: mrkamel
- Created: 2012-05-15T19:07:50.000Z (about 14 years ago)
- Default Branch: master
- Last Pushed: 2013-03-04T08:37:02.000Z (over 13 years ago)
- Last Synced: 2025-03-29T04:44:05.355Z (over 1 year ago)
- Language: Ruby
- Size: 97.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# RenderObject
Simply map an object to a partial and render it.
For instance, to render path/to/partial/some_object.html.erb, simply use in your view:
render_object SomeObject.new, :path => "path/to/partial"