Module: FormField::Model

Defined in:
lib/ramaze/contrib/sequel/form_field.rb

Instance Method Summary collapse

Instance Method Details

#form_field(field, hint = nil) ⇒ Object



124
125
126
127
# File 'lib/ramaze/contrib/sequel/form_field.rb', line 124

def form_field(field, hint = nil)
  show_errors = Ramaze::Request.current.post? ? 1 : 0
  FormField.new(self, field, show_errors, hint).to_s
end