On Thu, Oct 27, 2011 at 1:32 PM, Max <aamax@xmission.com> wrote:
> I have an index page in my site and each item displayed from the model
> has a link (that looks like a button)... I want that link to simply
> clear a field (or set it to some value) in the underlying model for
> that entry...
Uh, realizing that every time a spider comes along to index your site,
every one of those links will be activated? (unless the page in question
is password protected)
> The page does not have a form on it and i'd like to avoid that if possible....
Google 'http idempotent request' to understand why you should use a
POST rather than GET for actions that change data.
HTH,
--
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
http://about.me/hassanschroeder
twitter: @hassan
--
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
No comments:
Post a Comment