Re: Javascript blues

Chris Mear
Fri, 02 Feb 2007 13:02:27 -0000

On Feb 2, 12:55 pm, Tharfagreinir
<rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
wrote:
> <script src="/javascripts/user_login.js?[number]"
> type="text/javascript">
>
> 1) Is it necessary to preclude the /javascripts/ path from going to the
> dispatcher in order to be able to include the files there?
>
> 2) If so, what am I doing wrong? Why is RewriteCond %{REQUEST_URI}
> ^/javascripts/(.*)$ [OR] not working?
>
> 3) If not, am I supposed to set up some routing for this to work?
>
> 4) If I''m not supposed to set up any .htaccess precludes nor
routing,
> what could possibly be going wrong?

You shouldn''t need to change any of the default settings to get this
to work.

What do you get if you just type http://localhost:3000/javascripts/user_login.js
into your browser address bar? Does it display/download the file okay,
or do you get an error?

Chris