Rails 3.1 serving images from vendor/assets/images -


i trying put external images (used jquery plugin) vendor/assets/images in rails 3.1 app. problem when try like:

<%= image_tag "ui-bg_flat_75_ffffff_40x100.png" %> 

i error:

no route matches [get] "/assets/ui-bg_flat_75_ffffff_40x100.png" 

i checked rails.application.config.assets.paths , list these dirs:

..../app/assets/images ..../app/assets/javascripts ..../app/assets/stylesheets ..../vendor/assets/images ..../vendor/assets/stylesheets ..../.rvm/gems/ruby-1.9.2-p180@mygems/gems/jquery-rails-1.0.9/vendor/assets/javascripts 

as can see /vendor/assets/images listed there. if put image app/assets/images works.

i thought new asset pipeline supposed go through assets dirs , serve requested file wherever finds it.

does knows what's problem here?

i had restart rails server after creating vendor/assets/images directory. before this, seeing same error ("no route matches [get]").

my guess rails server not check these directories if did not exist when first started. when open rails console diagnose issue, new instance of rails knows directory, adds confusion.


Comments

Popular posts from this blog

sql - text truncated using perl DBI insert -

c++ - Is it possible to compile a VST on linux? -

php - Pass object by reference or value -