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
redirect_to :action =>‘book’

my view:

<%= link_to_remote (image_tag("…/images/delete_bt.gif", :border => 0)),
:url =>{
:action => ‘delete’,
:id => s.id},

uncaught exception: controls.js requires including script.aculo.us
effects.js library

Line 0

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 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 [email protected]

forgot it…
Thanks a lot friend…

Now working fine…

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs