Module: Ramaze::Helper::Form

Defined in:
lib/ramaze/helper/form.rb

Instance Method Summary collapse

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, options = {})
  Ramaze::Form.pick(object, options)
end