Do <%= javascript_include_tag :defaults %> on your page rather than
including both files.
It sounds to me like it''s not including the prototype one.
On Tue, May 20, 2008 at 8:02 AM, gringo
<gregpyp-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
>
> Hello,
>
> I want to call Ajax.Request from my javascript function defined in "/
> javascripts/application.js" but I still get the same error on my
> firebug console: "Ajax is not defined".
> As I know Ajax class is defined in /javascripts/prototype.js library
> which is within the same dir as my script.
> Both scripts has been also included on the generated page - I have
> checked it on the page source.
>
> Is there something missed?
>
> Thanks
> gringo
> >
>
--
Appreciated my help?
Reccommend me on Working With Rails
http://workingwithrails.com/person/11030-ryan-bigg
--~--~---------~--~----~------------~-------~--~----~
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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---