I've done some extra checks and observed that with Javascript turned
off on my web browsers (chrome and firefox),
the destroy method does not get called when I click on it.

in app/views/parts/index.html.erb, i observed that I was using
":method => delete"
to generate the deletion link.
I have changed it to use 'data-method'=> :delete but it still does not
work :(



                                link_to 'Delete',
                                        part_path(part.id),
                                       :method => :delete,
                                        'data-confirm' => 'Are you
sure?',
                                        'data-remote' => 'true',
                                        'class' => 'delete_part'

                                 to

                                link_to 'Delete',
                                        part_path(part.id),
                                       'data-method' => :delete,
                                        'data-confirm' => 'Are you
sure?',
                                        'data-remote' => 'true',
                                        'class' => 'delete_part'

-- 
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.

Reply via email to