zurb/foundation — Issue #218: Asset url form images in CSS
Author: maximeg
Created: 2012-01-10 15:33:47+00:00
State: open

I decided to use Foundation in Rails with this gem. And, i didn't manage to make images work in the assets pipeline.

I only get some :

```
Started GET "/images/foundation/misc/input-bg.png" for 127.0.0.1 at 2012-01-10 16:19:57 +0100
ActionController::RoutingError (No route matches [GET] "/images/foundation/misc/input-bg.png"):
```

The only way for this to work was to replace, for example,
```image-url("foundation/misc/button-gloss.png")```
by
```asset-url("foundation/misc/button-gloss.png", image)```

My rails app is quite simple, here is the Gemfile :
```ruby
source 'http://rubygems.org'

gem 'rails', '~> 3.1.3'

group :assets do
gem 'sass-rails', '~> 3.1.5'
#gem 'coffee-rails', '~> 3.1.1'
gem 'uglifier', '>= 1.2.1'

# Javascript runtime environment
gem 'therubyracer'

# Compass for SCSS mixins
gem 'compass'

gem 'zurb-foundation'
gem 'jquery-rails'
end

gem 'i18n_routing'
```

What did I miss ?