Smarty 2k
2008-Nov-24 07:34 UTC
uncaught exception: controls.js requires including script.ac
hi friends... Ajax problem.... please help me. Ajax using delete the record Browser Mozilla my controller: def delete Book.find(params[:id]).destroy redirect_to :action =>''book'' end my view: <%= link_to_remote (image_tag("../images/delete_bt.gif", :border => 0)), :url =>{ :controller=>"book", :action => ''delete'', :id => s.id}, :update=>"book#{s.id}", :loading=>"status(''book#{s.id}'')" %> Error.... uncaught exception: controls.js requires including script.aculo.us'' effects.js library Line 0 -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Bobnation
2008-Nov-24 07:45 UTC
Re: uncaught exception: controls.js requires including script.ac
Looks to me like you need to include the script.aculo.us library, which is found in your public/javascripts/ folder. However, add this to the <head> of your application layout: <%= javascript_include_tag :defaults %> Then make sure that everything is in the javascripts folder. On Nov 24, 1:34 am, Smarty 2k <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> hi friends... > > Ajax problem.... > please help me. > Ajax using delete the record > > Browser Mozilla > > my controller: > > def delete > Book.find(params[:id]).destroy > redirect_to :action =>''book'' > end > > my view: > > <%= link_to_remote (image_tag("../images/delete_bt.gif", :border => 0)), > :url =>{ > :controller=>"book", > :action => ''delete'', > :id => s.id}, > :update=>"book#{s.id}", > :loading=>"status(''book#{s.id}'')" > %> > > Error.... > uncaught exception: controls.js requires including script.aculo.us'' > effects.js library > > Line 0 > -- > Posted viahttp://www.ruby-forum.com/.--~--~---------~--~----~------------~-------~--~----~ 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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Smarty 2k
2008-Nov-24 09:06 UTC
Re: uncaught exception: controls.js requires including script.ac
forgot it.... Thanks a lot friend.. Now working fine.... -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---