# CSS and JS won't display

**URL:** <https://www.ruby-forum.com/t/css-and-js-wont-display/173710>\
**Category:** Rails\
**Created:** [August 13, 2009, 5:34pm UTC](https://www.ruby-forum.com/t/css-and-js-wont-display/173710 "2009-08-13T17:34:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![calande](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/edb3f5/32.png) [@calande](https://www.ruby-forum.com/u/calande)\
**Post date:** [August 13, 2009, 5:34pm UTC](https://www.ruby-forum.com/t/css-and-js-wont-display/173710/1 "2009-08-13T17:34:35Z")

</div>

Just downloaded a barebones project using git and I’m charged with doing  
a design for it. First time using HAML and SASS. Looking forward to  
it.

Booted up Webrick and went to load the page and none of the js or css  
showed up. Keep getting these errors for all files in the public  
folder:

ActionController::RoutingError (No route matches  
“/javascripts/controls.js” with {:method=\>:get}):  
/usr/local/lib/ruby/1.8/webrick/httpserver.rb:104:in `service' /usr/local/lib/ruby/1.8/webrick/httpserver.rb:65:in`run’  
/usr/local/lib/ruby/1.8/webrick/server.rb:173:in `start_thread' /usr/local/lib/ruby/1.8/webrick/server.rb:162:in`start’  
/usr/local/lib/ruby/1.8/webrick/server.rb:162:in `start_thread' /usr/local/lib/ruby/1.8/webrick/server.rb:95:in`start’  
/usr/local/lib/ruby/1.8/webrick/server.rb:92:in `each' /usr/local/lib/ruby/1.8/webrick/server.rb:92:in`start’  
/usr/local/lib/ruby/1.8/webrick/server.rb:23:in `start' /usr/local/lib/ruby/1.8/webrick/server.rb:82:in`start’

Here are my gems. HAML is definitely there  
actionmailer (2.3.3, 2.3.2, 2.2.2, 2.1.1, 1.3.6)  
actionpack (2.3.3, 2.3.2, 2.2.2, 2.1.1, 1.13.6)  
actionwebservice (1.2.6)  
activerecord (2.3.3, 2.3.2, 2.2.2, 2.1.1, 1.15.6)  
activeresource (2.3.3, 2.3.2, 2.2.2, 2.1.1)  
activesupport (2.3.3, 2.3.2, 2.2.2, 2.1.1, 1.4.4)  
colored (1.1)  
geocoder (0.1.1)  
geokit (1.2.6)  
haml (2.2.2)  
libxml-ruby (1.1.3)  
memcache-client (1.6.5)  
mislav-will\_paginate (2.3.11)  
mysql (2.7)  
net-ssh (2.0.11)  
net-ssh-gateway (1.0.1)  
net-ssh-multi (1.0.1)  
noaa-weather (0.1.4)  
rack (1.0.0)  
rails (2.3.3, 2.3.2, 2.2.2, 2.1.1, 1.2.6)  
rake (0.8.3)  
rmagick (2.10.0)  
rubygems-update (1.3.1)  
sources (0.0.1)  
sqlite3-ruby (1.2.4)  
SystemTimer (1.1)  
webmat-git\_remote\_branch (0.3.0)

I have a sinking feeling this has less to do with HAML and more to do  
with my installation of RoR. I’ve had trouble with it since day 1. Any  
help is much appreciated.

---

<div class="post-metadata">

**Author:** ![calande](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/edb3f5/32.png) [@calande](https://www.ruby-forum.com/u/calande)\
**Post date:** [August 14, 2009, 6:08pm UTC](https://www.ruby-forum.com/t/css-and-js-wont-display/173710/2 "2009-08-14T18:08:03Z")

</div>

Hi Charles,  
On Thu, 2009-08-13 at 17:34 +0200, Charles Lawrence wrote:

> Just downloaded a barebones project using git and I’m charged with doing  
> a design for it. First time using HAML and SASS. Looking forward to  
> it.
> 
> Booted up Webrick and went to load the page and none of the js or css  
> showed up. Keep getting these errors for all files in the public  
> folder:
> 
> ActionController::RoutingError (No route matches  
> “/javascripts/controls.js” with {:method=\>:get}):

Looks like your being told there’s no file named controls.js  
in /public/javascripts/ ?

HTH,  
Bill
