# Form\_for

**URL:** <https://www.ruby-forum.com/t/form-for/143932>\
**Category:** Rails\
**Created:** [July 23, 2008, 11:40pm UTC](https://www.ruby-forum.com/t/form-for/143932 "2008-07-23T23:40:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jturney](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/e99b99/32.png) [@jturney](https://www.ruby-forum.com/u/jturney)\
**Post date:** [July 23, 2008, 11:40pm UTC](https://www.ruby-forum.com/t/form-for/143932/1 "2008-07-23T23:40:02Z")

</div>

```
      <% form_for :post, :url => { :action => :save_requirement } do

```

|form|  
Requirement Title:\<%= form.text\_field :title, :value =\>  
params[:title]  
\<%= form.submit “Add requirement” %\>

This is just a part of my form…when I hit submit, it works great with  
IE7, but Firefox 3.0 doesn’t do anything. What solution is there to get  
it to work with both of them?

Thanks!

---

<div class="post-metadata">

**Author:** ![jturney](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/e99b99/32.png) [@jturney](https://www.ruby-forum.com/u/jturney)\
**Post date:** [July 24, 2008, 4:21am UTC](https://www.ruby-forum.com/t/form-for/143932/2 "2008-07-24T04:21:21Z")

</div>

Justin To wrote:

> ```
> <% form_for :post, :url => { :action => :save_requirement } do
> 
> ```
> 
> |form|

Could you inspect the source that generates?

Rails is funny regarding symbols on the right side of a =\>

Sometimes it treats them as a shortcut for a string; sometimes not…

Also, is your action a member of the current controller?

After you fix it, be sure to use routes.rb to name your route, and use  
that.

What do your functional tests say about your ability to :post to that  
action?

–  
Phlip

---

<div class="post-metadata">

**Author:** ![jturney](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/e99b99/32.png) [@jturney](https://www.ruby-forum.com/u/jturney)\
**Post date:** [July 24, 2008, 1:04pm UTC](https://www.ruby-forum.com/t/form-for/143932/3 "2008-07-24T13:04:52Z")

</div>

Hi –

On Wed, 23 Jul 2008, Justin To wrote:

> it to work with both of them?  
> I don’t think that’s really an excerpt from your view template; it’s  
> missing some %\> delimiters, so it wouldn’t work at all.

It’s best to cut-and-paste the real code that you’re asking about, so  
that people can try to spot what the problem might be.

David

–  
Rails training from David A. Black and Ruby Power and Light:  
Intro to Ruby on Rails July 21-24 Edison, NJ

- Advancing With Rails August 18-21 Edison, NJ
- Co-taught by D.A. Black and Erik Kastner  
See [http://www.rubypal.com](http://www.rubypal.com) for details and updates!
