Sandip,
Are you certain all of the ids are valid?
You could try adding something like this to your controller action
before the destroy is called:
def destroy
@records = Model.all( :conditions => ["id IN (?)", array])
raise "Not all ids were valid!" unless @records.size == array.size
Model.destroy(array)
....
end
This will raise an error if the ids are not all valid and you''ll know
to look elsewhere for the root of the problem
Hope that helps?
Gavin
http://handyrailstips.com
On Jul 20, 8:59 am, Sandip Ransing
<san2...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> Hello friends !
>
> Model.destroy(array of ids) gives record not found error in Internet
> Explorer.
>
> Sandip R~
>
> --
> Ruby on Rails
Developerhttp://sandip.sosblog.comhttp://funonrails.wordpress.comwww.joshsoftware.com