Destructive actions should be performed as a form submission – http://www.w3.org/2001/tag/doc/whenToUseGet.html#checklist
use button_to
(passing a :method => :delete
) instead and style the button appropriately.
More Related Contents:
- How can I rename a database column in a Ruby on Rails migration?
- How to get a random number in Ruby
- Why do routes with a dot in a parameter fail to match?
- Rails 3: “field-with-errors” wrapper changes the page appearance. How to avoid this?
- When to use a “has_many :through” relation in Rails?
- rake db:schema:load vs. migrations
- file download link in rails
- How to fix the uninitialized constant Rake::DSL problem on Heroku?
- Rails 3: Multiple Select with has_many through associations
- Rails 3 SQLite3 Boolean false
- Rails 3 submit a form with multiple records
- Installing Postgres on windows for use with Ruby-on-Rails
- Using send_file to download a file from Amazon S3?
- Rails 3 UTF-8 query string showing up in URL?
- How to match accented characters with a regex?
- Rails auto-assigning id that already exists
- f.error_messages in Rails 3.0
- Devise + Omniauth – How to pass extra parameters along?
- Convert UTC to local time in Rails 3
- Scope with join on :has_many :through association
- What does do in rails erb?
- Rails form_for :remote=>true is not calling js method
- Remote mysql database on Heroku app
- How to implement bulk insert in Rails 3
- Controlling the order of rails validations
- Ruby on Rails 3 howto make ‘OR’ condition
- Adding foreign key to a rails model
- Rails catch-all/globbing routes
- How to set default rails version for a project?
- Always getting 401 Unauthorized with new install of Rails + Devise