Forum: Ruby on Rails link_to, image_submit_tag, "changes only with POST" and "usa

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
D39d7c8071ed8bed6b851c64697b1a29?d=identicon&s=25 Oliver Paulus (paoli)
on 2007-03-06 18:52
(Received via mailing list)

I want to have the following features in my rails application:
1. the program should have AJAX if Javascript available
2. I want to protect my application described in - means GET should be
3. if Javascript is disabled the application should work too (without

If I use "GET should be safe" option (verify) and link_to with :method
=> 'post' option these links do not work anymore with Javascript
disabled. My idea was now to use image_submit_tag to do e.g. a
'delete' action on list page. For this option I have to encode the
action (delete) and the id of the entity within the value option of
the generated HTML "input" tag. Is there a plugin for this
avalailable? The downside of this is that I have one form action which
has to decode the "value" content and delegate to the right action.
Did I miss something?
D39d7c8071ed8bed6b851c64697b1a29?d=identicon&s=25 Oliver Paulus (paoli)
on 2007-03-07 11:53
(Received via mailing list)
Ok. I solved it. I make a form_tag with a image_submit_tag for each
action which modifies something (POST). all others can use link_to
This topic is locked and can not be replied to.