Skip to content

Instantly share code, notes, and snippets.

@ltackett
Created July 13, 2009 04:48
Show Gist options
  • Save ltackett/145936 to your computer and use it in GitHub Desktop.
Save ltackett/145936 to your computer and use it in GitHub Desktop.
- with_options :scope => scope do |fields|
%div{:id => field.to_s, :class => "#{input_type} field"}
%label= fields.t(:label)
- with_options :scope => scope do |fields|
%div{:id => field.to_s, :class => "#{helper} field"}
- if !options.has_key?(:label) || options[:label]
%label= fields.t(:label)
= input
- if !options.has_key?(:help_button) || options[:help_button]
= fields.help_button
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment