https://github.com/coreyward/bootstrap-formtastic-inputs
Twitter Bootstrap, meet Formtastic
https://github.com/coreyward/bootstrap-formtastic-inputs
Last synced: 2 months ago
JSON representation
Twitter Bootstrap, meet Formtastic
- Host: GitHub
- URL: https://github.com/coreyward/bootstrap-formtastic-inputs
- Owner: coreyward
- Created: 2011-11-16T17:05:28.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2011-11-16T17:05:57.000Z (over 13 years ago)
- Last Synced: 2024-12-31T10:33:27.346Z (4 months ago)
- Language: Ruby
- Homepage:
- Size: 93.8 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Formtastic Inputs for Bootstrap
I recently used Twitter's Bootstrap with Formtastic. In order to pull this off I had to do a fair bit of work to get Formtastic's HTML output to be Bootstrap-friendly. I didn't need all of the elements, and I didn't bother getting them all perfect, but this is a very good start.
## Instructions
1. Copy the `inputs` and `concerns` folders to your `app` folder (Rails). If you already have one (or both), just copy over the files.
2. Copy the contents of `initializers/formtastic.rb` to the matching file in your Rails app.
3. Add the styles from the `stylesheets/formtastic_compatibility.scss` file to your stylesheets. Yes, I used SCSS instead of the native LESS version of Bootstrap. This isn't ideal, I know, but it is what it is.