Hi,
I hosted my site in production mode on a web hosting service.
The folder structure is
/home/my_username/rails_apps/proj/
I did the normal referencing <%= stylesheet_link_tag “menus” %> in
layouts/application.html.erb
But when I load the website, I dont see css effects. So I did page
view source and see that the href is point to /rails_apps/stylesheets
instead of the usual rails_apps/proj/public/stylesheets
Not sure why is this happening.
BTW i have a line in the environment.rb which is needed
config.action_controller.relative_url_root = “/rails_apps” It might be
due to this.
Then I tried the manual way, instead of using <%= stylesheet_link_tag
“menus” %> in the code I used
Still getting error in logs
ActionController::RoutingError (No route matches “/stylesheets/
tabs.css” with {:method=>:get}):
Someone please advise