Skip to content

Instantly share code, notes, and snippets.

@koke
Created January 20, 2009 21:33
Show Gist options
  • Save koke/49676 to your computer and use it in GitHub Desktop.
Save koke/49676 to your computer and use it in GitHub Desktop.
def text_field(method, options = {})
field_name, label, options = field_settings(method, options)
backup = {}
[:after, :before, :help].each {|k| backup[k] = options.delete(k)}
wrapping("text", field_name, label, super, options.merge(backup))
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment