Have you included the prototype javascript files in your layout? You can add this line in <head> element of your layout file (/app/views/layout/<yourmodel>.html.erb)
<%= javascript_include_tag :defaults %> On Thu, Sep 16, 2010 at 11:32 AM, hari bhat <[email protected]> wrote: > I am using document.observe("dom:loaded", function() in global.js ,Its > giving error document.observe is not an > > function. > > -- > 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]<rubyonrails-talk%[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.

