# Javascripts Controller Not working

**URL:** <https://www.ruby-forum.com/t/javascripts-controller-not-working/138832>\
**Category:** Rails\
**Created:** [May 28, 2008, 6:12am UTC](https://www.ruby-forum.com/t/javascripts-controller-not-working/138832 "2008-05-28T06:12:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ror\_arch](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/e19adc/32.png) [@ror\_arch](https://www.ruby-forum.com/u/ror_arch)\
**Post date:** [May 28, 2008, 6:12am UTC](https://www.ruby-forum.com/t/javascripts-controller-not-working/138832/1 "2008-05-28T06:12:47Z")

</div>

I am trying to make a javascripts controller work. The only resource I  
can find on this is here : [#88 Dynamic Select Menus - RailsCasts](http://railscasts.com/episodes/88)

I have tried everything in the tutorial and the comments including May  
22 08 comment by “pi\_p master” for respond\_to do format etc. and here  
is my predicament; my application works on my development machine just  
fine; when I transport the application to my production environment it  
does not call the javascripts controller; I have the following error :

1 2 3404 Not Found 4 5
# Not Found
6

The requested URL /javascripts/dynamic\_units.js was not found on this server.

7 Now I have even tried putting in explicitly map.connect ':controller/:action.:format' as well as : map.js '/javascripts/ dynamic\_units.js' , :controller=\>'javascripts', :action =\>'dynamic\_units' and whatever permutation I could fathom but to no avail. I know the dynamic\_units method in javascripts\_controller is not called because the logger never outputs any lines.
