Rails 3: On a local server (# rails server), my images weren't found, although the correct location is given -
i started rails server rails server
.
my images in public/images, i.e. image public/images/rails.png put html <img src="/images/rails.png" />
image_tag
helper generates it.
but reason, picture isn't found. if enter source of file directly browser, routing error: "no route matches http://0.0.0.0:3000/images/rails.png".
any help?
yours,
joern
check environments' config file, ie. config/environments/production.rb
. if there's setting config.serve_static_assets = false
, problem described occur.
Comments
Post a Comment