Dai O. wrote in post #977736:
> How do you set route to the delete action?

I'm just using the premise object as the second arg to link_to:

<%= link_to "delete",
         premise,
         :method => :delete,
         :confirm => "Positive?",
         :title => "Delete #{premise.address}" %>

The generated HTML is (for example):

<a href="/premises/2"
      data-confirm="Positive?"
      data-method="delete"
      rel="nofollow"
      title="Delete 123 Chestnut Street">delete</a>

That looks basically right to me, so I'm still stumped.

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