we have developed an rails project using rails 3 and mysql, it has images, css and javascript (jquery) and it is working fine in windows xp environment.
But when i migrated the code to ubuntu, the images, css ( applies partially) and javascript (jquery) are not loading. i am running in development mode.
I have included the js and css like this:
<%= stylesheet_link_tag "jquery-one", "ctlCalendar", "application", "jquery.treeview" %>
<%= javascript_include_tag "jquery-1.6.2.min", "jquery.rails", "jquery.treeview"%>
Here the error i am getting:
Started GET "/images/LoginImage.png" for 127.0.0.1 at 2011-08-13 01:02:04 +0900
ActionController::RoutingError (No route matches "/images/LoginImage.png"):
Rendered /usr/local/lib/ruby/gems/1.9.1/gems/actionpack-3.0.9/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (1.0ms)
Started GET "/Images/Back_Login.gif" for 127.0.0.1 at 2011-08-13 01:02:05 +0900
ActionController::RoutingError (No route matches "/Images/Back_Login.gif"):
Rendered /usr/local/lib/ruby/gems/1.9.1/gems/actionpack-3.0.9/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (1.1ms)
can anyone help me to solve this problem?
Thank You,
Sudhir C.N.
Ubuntu, and other Linux versions, have case-sensitive file names, while Windows XP doesn’t.
This means while
LoginImage.pngandloginimage.pngare the same in Windows, they are not the same in Ubuntu. That’s probably the cause of your problem.The same applies to path names –
/imagesand/Imagesare completely different paths in Linux, so make sure not to mix them up.