# forms help.

**URL:** <https://discuss.rubyonrails.org/t/forms-help/24693>\
**Category:** rubyonrails-talk\
**Created:** [February 11, 2008, 1:36am UTC](https://discuss.rubyonrails.org/t/forms-help/24693 "2008-02-11T01:36:46Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Athel](https://avatars.discourse-cdn.com/v4/letter/a/839c29/32.png) [@Athel](https://discuss.rubyonrails.org/u/Athel)\
**Post date:** [February 11, 2008, 1:36am UTC](https://discuss.rubyonrails.org/t/forms-help/24693/1 "2008-02-11T01:36:46Z")

</div>

Ok, so in the middle of learning Ruby, things jumped to 2.0.2 and now i'm having to relearn. I can't find any answers on this.

in new.rhtml.erb I have the following code:

\<%= error\_messages\_for :failure %\>

\<% form\_for(@failure) do |f| %\> \<%= render :partial =\> "form", :locals =\> { :f =\> f, :button =\> "Create" } %\> \<% end %\>

---

<div class="post-metadata">

**Author:** ![Rick\_DeNatale](https://avatars.discourse-cdn.com/v4/letter/r/a587f6/32.png) [@Rick\_DeNatale](https://discuss.rubyonrails.org/u/Rick_DeNatale)\
**Post date:** [February 11, 2008, 2:19am UTC](https://discuss.rubyonrails.org/t/forms-help/24693/2 "2008-02-11T02:19:03Z")

</div>

Is that a typo? It should be \_form.html.erb

---

<div class="post-metadata">

**Author:** ![Athel](https://avatars.discourse-cdn.com/v4/letter/a/839c29/32.png) [@Athel](https://discuss.rubyonrails.org/u/Athel)\
**Post date:** [February 11, 2008, 2:22am UTC](https://discuss.rubyonrails.org/t/forms-help/24693/3 "2008-02-11T02:22:56Z")

</div>

Yes, its a typo, sorry, I have it named \_form.rhtml.erb

---

<div class="post-metadata">

**Author:** ![Rick\_DeNatale](https://avatars.discourse-cdn.com/v4/letter/r/a587f6/32.png) [@Rick\_DeNatale](https://discuss.rubyonrails.org/u/Rick_DeNatale)\
**Post date:** [February 11, 2008, 2:31am UTC](https://discuss.rubyonrails.org/t/forms-help/24693/4 "2008-02-11T02:31:18Z")

</div>

Okay, so directory is it in, and what's the controller?

---

<div class="post-metadata">

**Author:** ![Athel](https://avatars.discourse-cdn.com/v4/letter/a/839c29/32.png) [@Athel](https://discuss.rubyonrails.org/u/Athel)\
**Post date:** [February 11, 2008, 2:46am UTC](https://discuss.rubyonrails.org/t/forms-help/24693/5 "2008-02-11T02:46:01Z")

</div>

its in the directory of:

C:\apps\yrcsphere\app\views\failures

and the controller is

C:\apps\yrcsphere\app\controllers\failures\_controller.rb

---

<div class="post-metadata">

**Author:** ![Rick\_DeNatale](https://avatars.discourse-cdn.com/v4/letter/r/a587f6/32.png) [@Rick\_DeNatale](https://discuss.rubyonrails.org/u/Rick_DeNatale)\
**Post date:** [February 11, 2008, 1:50pm UTC](https://discuss.rubyonrails.org/t/forms-help/24693/6 "2008-02-11T13:50:50Z")

</div>

Hmm, that all sounds right to me. I'd suggest checking permissions on the file, but since I see you're on Windows, I'm not sure that makes sense either.

---

<div class="post-metadata">

**Author:** ![Frederick\_Cheung](https://sea2.discourse-cdn.com/rubyonrails/user_avatar/discuss.rubyonrails.org/frederick_cheung/32/3901_2.png) [@Frederick\_Cheung](https://discuss.rubyonrails.org/u/Frederick_Cheung)\
**Post date:** [February 11, 2008, 5:35pm UTC](https://discuss.rubyonrails.org/t/forms-help/24693/7 "2008-02-11T17:35:53Z")

</div>

> Yes, its a typo, sorry, I have it named \_form.rhtml.erb

That's still wrong. \_form.html.erb is what it should be

Fred

---

<div class="post-metadata">

**Author:** ![Rick\_DeNatale](https://avatars.discourse-cdn.com/v4/letter/r/a587f6/32.png) [@Rick\_DeNatale](https://discuss.rubyonrails.org/u/Rick_DeNatale)\
**Post date:** [February 11, 2008, 5:54pm UTC](https://discuss.rubyonrails.org/t/forms-help/24693/8 "2008-02-11T17:54:30Z")

</div>

Good catch Fred, I'd assumed he was saying that it was named as I'd suggested.

---

<div class="post-metadata">

**Author:** ![Athel](https://avatars.discourse-cdn.com/v4/letter/a/839c29/32.png) [@Athel](https://discuss.rubyonrails.org/u/Athel)\
**Post date:** [February 11, 2008, 6:43pm UTC](https://discuss.rubyonrails.org/t/forms-help/24693/9 "2008-02-11T18:43:39Z")

</div>

I am so sorry. That fixed it. When you said typo, I checked my original post and was missing the e in \*erb. Renaming it to \_form.html.erb completely fixed it.

Thank you all.
