Forum: Ruby on Rails Moving an existing Rails app, css links are wrong

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
5fa4bbe2cd502510e7702ae1b845f2dd?d=identicon&s=25 MJ (Guest)
on 2007-01-15 09:37
Hi,

I just moved my existing Rails app from /oldblog to /newblog.
It works great only the css links and the controller links still
get written as:
http://mydomain.com/oldblog/stylesheets/main.css instead of
http://mydomain.com/newblog/stylesheets/main.css.
How can I change this?

Thanks,
MJ
C91098dc76d7ad473165ef24fe805312?d=identicon&s=25 Nanyang Zhan (xain)
on 2007-01-15 11:37
MJ wrote:
> Hi,
>
> I just moved my existing Rails app from /oldblog to /newblog.
> It works great only the css links and the controller links still
> get written as:
> http://mydomain.com/oldblog/stylesheets/main.css instead of
> http://mydomain.com/newblog/stylesheets/main.css.
> How can I change this?
>
> Thanks,
> MJ

css files' path are defined in the view files, normally inside layout
files.
app\view\layouts\xxxx.rhmtl
5fa4bbe2cd502510e7702ae1b845f2dd?d=identicon&s=25 MJ (Guest)
on 2007-01-15 13:58
>
> css files' path are defined in the view files, normally inside layout
> files.
> app\view\layouts\xxxx.rhmtl

That's right, but there is simply says <% stylesheet_link_tag "main" %>
This topic is locked and can not be replied to.