Live data from Hacker News

A solution to assets management in Rails

rails-assets.org

1–10 of 35 posts

Re: A solution to assets management in Rails

#3
TL;DR -> Gem repo which automatically converts Bower packages to gems

Awesome! Was looking for something like this. I used to have a "vendorassets" directory where I could sanely manage 3rd party assets. Still a pain in the ass sometimes.

Rails-gems are usually out of date and everyone seems to jump the bower-ship.

Re: A solution to assets management in Rails

#4

I don't get this. It's not hard to download a JavaScript or css file and put them in app/assets. What warrants the additional complexity?

It becomes a huge mess, and you will not remember which file belongs to which project. All css files and images are in the same and you have no clue which version you are using.

Re: A solution to assets management in Rails

#8
Just set bower to install into vendor/assets and link to those instead in your stylesheets/scripts. No need to add an additional layer of indirection and increasing the length of you Gemfile. Your bower.json should be where this information is stored, not you Gemfile.

Re: A solution to assets management in Rails

#9
post #8

Just set bower to install into vendor/assets and link to those instead in your stylesheets/scripts. No need to add an additional layer of indirection and increasing the length of you Gemfile. Your bower.json should be where this information is stored, not you Gemfile.

How do you lock your bower dependencies then?

Re: A solution to assets management in Rails

#10
post #8

Just set bower to install into vendor/assets and link to those instead in your stylesheets/scripts. No need to add an additional layer of indirection and increasing the length of you Gemfile. Your bower.json should be where this information is stored, not you Gemfile.

How do you lock your bower dependencies then?

Bower deps are bound by semver; and if you're willing to commit them (which you should, if your project is a webapp and not a software library) then you can lock them w 100% certainty and control. /$.02
Post reply on HN