Skip to content

Commit

Permalink
Merge pull request #561 from toadkicker/readme_about_sass
Browse files Browse the repository at this point in the history
update readme to discuss manifest compile issues with SASS
  • Loading branch information
seyhunak committed Apr 26, 2013
2 parents 42427d8 + 4a66f99 commit 1f3d040
Showing 1 changed file with 16 additions and 18 deletions.
34 changes: 16 additions & 18 deletions README.md
Expand Up @@ -169,6 +169,17 @@ styles inheriting Bootstrap's mixins, you can do so inside bootstrap_and_overrid
```css
@linkColor: #ff0000;
```
### SASS

If you are using SASS to compile your application.css (e.g. your manifest file is application.css.sass or application.css.scss) you may get this:

```
Invalid CSS after "*": expected "{", was "= require twitt..."
(in app/assets/stylesheets/application.css)
(sass)
```

If this is the case, you **must** use @import instead of `*=` in your manifest file, or don't compile your manifest with SASS.

### Icons

Expand All @@ -184,7 +195,7 @@ If you would like to restore the default Glyphicons, inside the _bootstrap_and_o

## Using Javascripts

You have to require Bootstrap JS (bootstrap.js) in your application.js
Require Bootstrap JS (bootstrap.js) in your application.js

```js
//= require twitter/bootstrap
Expand Down Expand Up @@ -230,6 +241,7 @@ Add flash helper `<%= bootstrap_flash %>` to your layout (built-in with layout g

*Notice* If your application is using [breadcrumbs-on-rails](https://github.com/weppos/breadcrumbs_on_rails) you will have a namespace collision with the add_breadcrumb method.
You do not need to use these breadcrumb gems since this gem provides the same functionality out of the box without the additional dependency.

Add breadcrumbs helper `<%= render_breadcrumbs %>` to your layout.

```ruby
Expand All @@ -253,17 +265,10 @@ class ExamplesController < ApplicationController
end
```

Add I18n translations
###i18n Internationalization Support
The installer creates an english translation file for you and copies it to config/locales/en.bootstrap.yml


```yml
en:
breadcrumbs:
application:
index: "Index"
examples:
index: "Examples"
show: "Example"
```
NOTE: If you are using Devise in your project, you must have a devise locale file
for handling flash messages, even if those messages are blank. See https://github.com/plataformatec/devise/wiki/I18n

Expand Down Expand Up @@ -343,13 +348,6 @@ for handling flash messages, even if those messages are blank. See https://githu
<li>Leonid Shevtsov</li>
</ul>


### Future
<ul>
<li>Writing tests (not implemented yet)</li>
<li>Markup Helpers (alert, tabs, pagination, breadcrumbs etc.)</li>
</ul>

## About Me
Lead/ Senior Developer - Programmer @useful (Usefulideas) Istanbul / Turkey

Expand Down

0 comments on commit 1f3d040

Please sign in to comment.