Skip to content

Commit

Permalink
Introduce a CSS "shim" so that we can fix situtations where Bootstrap
Browse files Browse the repository at this point in the history
is not providing markup provided by Formtastic.  Hopefully this stays
small!

Fixes mjbellantoni#5.
  • Loading branch information
Matthew Bellantoni committed Dec 8, 2011
1 parent a009dec commit 6306481
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -102,7 +102,7 @@ made to generate the HTML expected by Bootstrap while still generating the rich

Bootstrap is somewhat incomplete, and in a few cases an inference needed to be drawn to determine a course of action. If you disagree with any of these choices, feel free to let me know.

(At some point, this gem may also provide some additional CSS to cover cases left unaddressed by Bootstrap, but its obvious what should be done. That's not going to happen any time soon though!)
The gem also provides some "shim" CSS where Bootstrap is missing styles provided Formtastic.

### Other

Expand Down Expand Up @@ -139,7 +139,7 @@ If you're filing a bug, thank you! Secondly, in the report please include:
* 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.
* Make sure to add tests for it and to run the test suite. **If you don't have tests, I won't accept the pull.** If you need help with this, please ask.
* 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.


Expand Down
1 change: 1 addition & 0 deletions lib/formtastic-bootstrap.rb
@@ -1,4 +1,5 @@
require "formtastic"
require "formtastic-bootstrap/engine"
require "formtastic-bootstrap/helpers"
require "formtastic-bootstrap/inputs"
require "formtastic-bootstrap/form_builder"
Expand Down
4 changes: 4 additions & 0 deletions lib/formtastic-bootstrap/engine.rb
@@ -0,0 +1,4 @@
module FormtasticBootstrap
class Engine < ::Rails::Engine
end
end
3 changes: 3 additions & 0 deletions vendor/assets/stylesheets/formtastic-bootstrap.css
@@ -0,0 +1,3 @@
.hidden {
display: none;
}

0 comments on commit 6306481

Please sign in to comment.