Ian,
You bet I would. How timely -- I've wasted the better part of a work day
trying to get rails-twitter-bootstrap and fontawesome to play nicely when
deployed under Apache + Passenger to a sub-uri.
The problem I have is that the path to the font files is resolved by
FontAwesome to just "assets", as opposed to "sub_uri/assets", so it's not
finding the font files and hence, not rendering the icons.
Your gem sounds like a possible solution to this problem. If anyone has
another suggestion, please let me know.
Cheers,
Chris
On Monday, April 15, 2013 5:35:30 PM UTC-7, Ian Young wrote:
>
> Hey all,
>
> I recently spent some time messing with the 3.2 asset pipeline to get it
> to behave in a certain way. I'm trying to decide if I should bother
> packaging it into a gem, and it would be helpful for me to know if anyone
> else has run into the same issue.
>
> What we wanted was to mount assets at a couple different places in our
> app. Most assets were fine at the default `/assets/` path, but we wanted
> certain ones available at `/addon/`. I didn't want to do it with nginx
> aliases because that seemed like inappropriately pushing application logic
> into the web server, and it wouldn't work in development.
>
> I came up with a solution that uses a config setting and takes care of the
> asset pipeline-y stuff automatically (including precompiling). The config
> looks like this:
>
> config.assets.extra_mountpoints = {
> '/addon/' => {
> :path => "lib/assets/other/addon",
> :precompile => [/.*\.js/]
> },
> }
>
> So, has anyone else wanted to do something similar? And would you be
> interested in a gem to help you do so?
>
> Ian
>
--
--
SD Ruby mailing list
[email protected]
http://groups.google.com/group/sdruby
---
You received this message because you are subscribed to the Google Groups "SD
Ruby" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.