# Remote\_form\_for does not work with method = :get

**URL:** <https://www.ruby-forum.com/t/remote-form-for-does-not-work-with-method-get/130960>\
**Category:** Rails\
**Created:** [March 4, 2008, 8:16pm UTC](https://www.ruby-forum.com/t/remote-form-for-does-not-work-with-method-get/130960 "2008-03-04T20:16:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sillydude](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/90ced4/32.png) [@sillydude](https://www.ruby-forum.com/u/sillydude)\
**Post date:** [March 4, 2008, 8:16pm UTC](https://www.ruby-forum.com/t/remote-form-for-does-not-work-with-method-get/130960/1 "2008-03-04T20:16:52Z")

</div>

It seems that remote\_form\_for does not work with method = :get since  
it does not change the prototype call. Is this a bug?

---

<div class="post-metadata">

**Author:** ![sillydude](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/90ced4/32.png) [@sillydude](https://www.ruby-forum.com/u/sillydude)\
**Post date:** [March 5, 2008, 1:25am UTC](https://www.ruby-forum.com/t/remote-form-for-does-not-work-with-method-get/130960/2 "2008-03-05T01:25:11Z")

</div>

sillydude wrote:

> It seems that remote\_form\_for does not work with method = :get since  
> it does not change the prototype call. Is this a bug?

Not a bug, Don’t use gets on any type of form submission. There is a  
very interesting history on the topic

hth

ilan

---

<div class="post-metadata">

**Author:** ![sillydude](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/90ced4/32.png) [@sillydude](https://www.ruby-forum.com/u/sillydude)\
**Post date:** [March 11, 2008, 5:04pm UTC](https://www.ruby-forum.com/t/remote-form-for-does-not-work-with-method-get/130960/3 "2008-03-11T17:04:59Z")

</div>

I think there are plenty of form submissions where get’s make sense  
(search engine queries, and other small form submissions that should  
be bookmarkable). I know the URL can only store a limited amount of  
data so this might get some people messed up.

On Mar 4, 5:25 pm, Ilan B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![sillydude](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/90ced4/32.png) [@sillydude](https://www.ruby-forum.com/u/sillydude)\
**Post date:** [March 11, 2008, 7:09pm UTC](https://www.ruby-forum.com/t/remote-form-for-does-not-work-with-method-get/130960/4 "2008-03-11T19:09:14Z")

</div>

sillydude wrote:

> I think there are plenty of form submissions where get’s make sense  
> (search engine queries, and other small form submissions that should  
> be bookmarkable). I know the URL can only store a limited amount of  
> data so this might get some people messed up.
> 
> On Mar 4, 5:25 pm, Ilan B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

I stand corrected! Yes… should have qualified that forms which effect  
any server side state besides caching should not be accessible via a  
get… my bad… apologies. I am not sure why Rails is putting the  
hammer down in this case…

ilan
