On 12 May 2010 15:14, tom <[email protected]> wrote:
> hi, just included a couple of js files into my application layout and
> pastedd the jas files into my appropriate js-folder:
>
> <script type="text/javascript"
> src="javascripts/growl/mootools-1.2b2.js"></script>
I think that should be src="/javasc....." The leading / tells it to
look in public, I presume they are in public/javascripts. It is
better to use javascript_include_tag however. Then you can just say
<%= javascript_include_tag "growl/mootools-1.2b2" %>
Colin
> <script type="text/javascript"
> src="javascripts/growl/growl-compressed.js"></script>
>
> using webrick (all basic setup) gives me that:
>
> ActionController::RoutingError (No route matches
> "/javascripts/growl/growl-compressed.js" with {:method=>:get}):
>
> file permissions are ok. i wonder, coz this doesnt happen to all the
> other js files...
> any ideas?
> thx
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>
>
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.