ok, the accion to controller is this def destroy empre=params[:id] empre=empre.to_i @todo=MercaUsuario.find(:all) @todo.each do |x| if (x.user_id == current_user.id)&&(x.empresa== empre) x.destroy end end end
but link_to_remote no call function if I push debugger in this funcion nothing happen thaks again -- 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@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---