Visa ett inlägg
Oläst 2008-08-28, 17:15 #4
mng0 mng0 är inte uppkopplad
Nykomling
 
Reg.datum: Dec 2006
Inlägg: 32
mng0 mng0 är inte uppkopplad
Nykomling
 
Reg.datum: Dec 2006
Inlägg: 32
Citat:
Originally posted by martin-lb@Aug 28 2008, 16:45
Kanske kan detta WIKI inlägg hjälpa?
http://wiki.rubyonrails.com/rails/pa...kToStaticFile/

For example, if your Rails app is running under Apache/FCGI, and is installed at /yourapp under document root, then the correct URL for your image would need to be [img]/yourapp/public/images/someimage.gif[/img]

/Martin
Tack för svaren, ska testa det ni föreslog.

Men angående martins lösning så står det ju i wikin:

"Luckily, Rails has some helpers to generate the correct URL automatically regardless of the environment your app is running under."

Och jag kör ju mina javascripts, images och stylesheets genom helpers.

Anyway, ska testa lite.
mng0 är inte uppkopplad   Svara med citatSvara med citat