Can you double-check you did everything listed here:
https://github.com/rails/jquery-ujs
Also, have a look at your HTML source if all js files are included
(and in the correct order).
Simon
On Jan 31, 3:38 am, eka forer...@gmail.com wrote:
Hi,
I am new to rails and was very pleased to find
Hi,
I am new to rails and was very pleased to find this thread. After
reinstalling ruby with
rvm ( ruby-1.9.2-p0 [ x86_64 ])
installing rails 3.0.3
installing gem 'jquery-rails'
rails generate jquery:install
rails generate scaffold locality name:string type:string
parent_id:string
There is
Hi I am a newbie,
So I followed the suggestions by Chris Mear and Fearless Fool but still
delete gets routed to show!
However this works:
curl http://10.0.1.33:3000/localities/1; -X DELETE
Resoure locality was created with rails generate scaffold ...
Thanks
Ernst
--
You received this message
What about this workaround: Define an additional route
match 'localities/:id/delete' = 'localities#destroy', :as =
:delete_locality
Thanks
Ernst
--
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
Frederick Cheung wrote in post #977813:
Have you got the rails js loaded that detects those attributes and
actually does something with them?
@Fred: As I alluded to in the OP, I'm suspicious that I may have messed
up the default Rails JS when I included JQuery. My
On 27 Jan 2011, at 08:06, Fearless Fool li...@ruby-forum.com wrote:
Frederick Cheung wrote in post #977813:
Have you got the rails js loaded that detects those attributes and
actually does something with them?
@Fred: As I alluded to in the OP, I'm suspicious that I may have messed
up the
I'm using this successfully (in a Rails 2.3.5 app):
link_to(Delete Post, post_path(@post), :confirm = 'Are you
sure?', :method = :delete)
To my knowledge there is no such thing as a delete_XYZ_path.
Check your logs to see if DELETE is really received on the top level.
For debugging purposed try
Frederick Cheung wrote in post #977813:
On Jan 26, 10:50pm, Fearless Fool li...@ruby-forum.com wrote:
a href=/premises/2
data-confirm=Positive?
data-method=delete
rel=nofollow
title=Delete 123 Chestnut Streetdelete/a
That looks basically right to me, so I'm still stumped.
Marnen Laibow-Koser wrote in post #977875:
I rarely use delete links...
That's interesting!
My instinct is to suggest defining a GET destroy action. OTOH, that's
not idempotent. Aaugh!
Browsers only generate GETs and POSTs, so any DELETE action needs to be
simulated somehow. And as you
Fearless Fool wrote in post #977888:
Marnen Laibow-Koser wrote in post #977875:
I rarely use delete links...
That's interesting!
My instinct is to suggest defining a GET destroy action. OTOH, that's
not idempotent. Aaugh!
Browsers only generate GETs and POSTs, so any DELETE action needs
Fearless Fool wrote in post #977722:
I'm stumped. My link_to that is supposed to generate a DELETE is
generating a GET. And I don't understand why.
Browsers generally only support GET and POST. When Rails generates a
DELETE link, what it's actually doing is generating a GET link with
Marnen Laibow-Koser wrote in post #977726:
Browsers generally only support GET and POST. When Rails generates a
DELETE link, what it's actually doing is generating a GET link with
_method=delete. Rails parses the _method parameter and treats it
exactly as if it were a real DELETE request.
How do you set route to the delete action?
The other day I met same problem, I modified link_to's second
argument(after first name argument) to application path and then
worked fine at the time. Might fit into your case, maybe.
On 1/27/11, Fearless Fool li...@ruby-forum.com wrote:
Marnen
Do you have something like this in routes.rb:
map.resources :premises
On Jan 26, 5:36 pm, Dai Odahara dai.odah...@gmail.com wrote:
How do you set route to the delete action?
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk group.
To post to
On Jan 26, 10:50 pm, Fearless Fool li...@ruby-forum.com wrote:
a href=/premises/2
data-confirm=Positive?
data-method=delete
rel=nofollow
title=Delete 123 Chestnut Streetdelete/a
That looks basically right to me, so I'm still stumped.
Have you got the rails js
15 matches
Mail list logo