Forum: Ruby on Rails javascripts

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
C1e5a9e9344b6d31b9df7303e6dc378a?d=identicon&s=25 Craig White (Guest)
on 2006-01-28 19:08
(Received via mailing list)
Trying to use auto_complete_for which works fine on my home system.

I see that when I use <%= javascript_include_tag "defaults" %>
that when used, the webrick reports
GET /javascripts/prototype.js
GET /javascripts/dragdrop.js
GET /javascripts/effects.js
GET /javascripts/controls.js

but on the system that I am trying to develop on and doing similarly,
the webrick only reports
GET /javascripts/defaults.js
even though public/javascripts/
has the other javascripts there in the folder.

I am thinking that this has something to do with why the
auto_complete_for function works on my home system but I have yet to
make it work on the system I am trying to develop for.

My home system is ruby-1.8.4-1.fc4 # Fedora-Core 4
my devel system is ruby-1.8.3-2.c2 # CentOS-4

Is this the issue? Why does use of
<%= javascript_include_tag "defaults %> seem to call the other
javascripts on my home system but not on the devel system?

Craig
9ab183bb240ffd3a3966d5a615b4bdeb?d=identicon&s=25 Philip Ross (Guest)
on 2006-01-28 21:33
(Received via mailing list)
Craig White wrote:
> Trying to use auto_complete_for which works fine on my home system.
>
> I see that when I use <%= javascript_include_tag "defaults" %>
> that when used, the webrick reports
> GET /javascripts/prototype.js
> GET /javascripts/dragdrop.js
> GET /javascripts/effects.js
> GET /javascripts/controls.js

The correct way to include the defaults is with

<%= javascript_include_tag :defaults %>

See
http://api.rubyonrails.com/classes/ActionView/Help...

Phil

--
Philip Ross
http://tzinfo.rubyforge.org/ -- DST-aware timezone library for Ruby
C1e5a9e9344b6d31b9df7303e6dc378a?d=identicon&s=25 Craig White (Guest)
on 2006-01-28 21:48
(Received via mailing list)
On Sat, 2006-01-28 at 20:22 +0000, Philip Ross wrote:
> The correct way to include the defaults is with
>
> <%= javascript_include_tag :defaults %>
>
> See
> http://api.rubyonrails.com/classes/ActionView/Help...
>
----
bing!

thanks

Craig
This topic is locked and can not be replied to.