custerd
custerd is a custom error viewer that makes the errors on rails forms a bit prettier when you're using bootstrap.css
Install
make sure you have twitters bootstrap.css or less included, else it won't be any prettier ;)
include custerd in your Gemfile
gem 'custerd'
Then run the install generator
rails g custerd:install
This will install two files:
config/initializers/custerd.rb
public/javascripts/custerd.js
When you're running 3.1 it will copy the .js to your assets.
Usage
rails 3.1
The javascript file is served up in the asset pipeline. Add the
following to your app/assets/javascripts/application.js
file.
//= require custerd
rails 3.0
custerd requires jQuery
Include the custerd.js
file in your layout
<%= javascript_include_tag 'jquery', 'custerd' =%>
Todo
Write tests for the little puppy.
Contributing to custerd
- Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
- Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it
- Fork the project
- Start a feature/bugfix branch
- Commit and push until you are happy with your contribution
- Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
- Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
Copyright
Copyright (c) 2011 Jeroen Knitel.
Licensed under the MIT license See LICENSE.txt for further details.