Module: Ramaze::Helper::Form
- Defined in:
- lib/ramaze/helper/form.rb
Instance Method Summary collapse
-
#form_for(object, options = {}) ⇒ Object
Pass it an object for your ORM and options for the <form> tag Usage: form_for(User, :action => ‘/create’) form_for(Tag, :action => ‘/find’, :method => ‘GET’).
Instance Method Details
#form_for(object, options = {}) ⇒ Object
Pass it an object for your ORM and options for the <form> tag Usage:
form_for(User, :action => '/create')
form_for(Tag, :action => '/find', :method => 'GET')
8 9 10 |
# File 'lib/ramaze/helper/form.rb', line 8 def form_for(object, = {}) Ramaze::Form.pick(object, ) end |