Skip to content

Instantly share code, notes, and snippets.

@okjake
Created March 22, 2012 13:05
Show Gist options
  • Select an option

  • Save okjake/2158253 to your computer and use it in GitHub Desktop.

Select an option

Save okjake/2158253 to your computer and use it in GitHub Desktop.
Rails form errors with Bootstrap
# To get form error states showing properly using Bootstrap with Rails, use (in config/application.rb):
config.action_view.field_error_proc = Proc.new { |html_tag, instance| "<div class=\"control-group error\">#{html_tag}</div>".html_safe }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment