Skip to content

Instantly share code, notes, and snippets.

@yatmsu
Created January 25, 2015 08:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yatmsu/cd3b2d9d5ab832449583 to your computer and use it in GitHub Desktop.
Save yatmsu/cd3b2d9d5ab832449583 to your computer and use it in GitHub Desktop.
app/forms/application_form_builder.rb
class ApplicationFormBuilder < ActionView::Helpers::FormBuilder
def select_genders(options = {}, html_options = {})
select :gender, [ [ 'male', 'male' ], [ 'fmale', 'fmale' ] ], options, html_options
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment