# NoMethodError in action\_view/helpers/form\_helper.rb:302:in \`

**URL:** <https://www.ruby-forum.com/t/nomethoderror-in-action-view-helpers-form-helper-rbin/110086>\
**Category:** Rails\
**Created:** [July 22, 2007, 11:23pm UTC](https://www.ruby-forum.com/t/nomethoderror-in-action-view-helpers-form-helper-rbin/110086 "2007-07-22T23:23:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![al\_schmid](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/a183cd/32.png) [@al\_schmid](https://www.ruby-forum.com/u/al_schmid)\
**Post date:** [July 22, 2007, 11:23pm UTC](https://www.ruby-forum.com/t/nomethoderror-in-action-view-helpers-form-helper-rbin/110086/1 "2007-07-22T23:23:23Z")

</div>

Hello everyone

I have this rather strange problem. After updating rails from 1.1.6 to  
1.2.2 I get these errors when using check\_box and radio\_button. Before  
everything was peachy…  
System: OS X (10.4.10), MySQL, Ruby 1.8.5, Rails 1.2.2

This is the line that seems to offend:

13:

\<%= check\_box(“tour”, “is\_festival”) %\>Ist ein Festival (der Festivalname wird  
anstelle der Bands benutzt)

The object, a CalendarTour (in @tour) is an object extended from  
ActiveRecord::Base.

The error report at the bottom reads as follows:

#{RAILS\_ROOT}/vendor/rails/actionpack/lib/action\_view/helpers/  
form\_helper.rb:302:in `value' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_view/helpers/ form_helper.rb:302:in`to\_check\_box\_tag’  
#{RAILS\_ROOT}/vendor/rails/actionpack/lib/action\_view/helpers/  
form\_helper.rb:210:in `check_box' #{RAILS_ROOT}/app/views/resys/calendar/enter_tourdates.rhtml:13:in`\_run\_rhtml\_47app47views47resys47calendar47enter\_tourdates46rhtml’  
#{RAILS\_ROOT}/app/controllers/resys/calendar\_controller.rb:411:in  
`save\_tourdates’

I can’t for the life of me find what’s wrong. I get these random  
seeming errors in different FORMs…

Any ideas? Thanks a lot!  
al

---

<div class="post-metadata">

**Author:** ![al\_schmid](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/a183cd/32.png) [@al\_schmid](https://www.ruby-forum.com/u/al_schmid)\
**Post date:** [July 27, 2007, 7:05pm UTC](https://www.ruby-forum.com/t/nomethoderror-in-action-view-helpers-form-helper-rbin/110086/2 "2007-07-27T19:05:22Z")

</div>

I was able to fix this same problem by replacing my boot.rb and  
environment.rb files in my old 1.1.6 app with the same files from a  
freshly-generated 1.2.3 app. Still not sure what specifically caused  
it, but I suspect it’s something with the gem code in the boot.rb  
file.

---

<div class="post-metadata">

**Author:** ![al\_schmid](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/a183cd/32.png) [@al\_schmid](https://www.ruby-forum.com/u/al_schmid)\
**Post date:** [July 28, 2007, 5:03pm UTC](https://www.ruby-forum.com/t/nomethoderror-in-action-view-helpers-form-helper-rbin/110086/3 "2007-07-28T17:03:24Z")

</div>

Seems like that took care of it. Very strange indeed. But thanks a  
lot!  
al

---

<div class="post-metadata">

**Author:** ![al\_schmid](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/a183cd/32.png) [@al\_schmid](https://www.ruby-forum.com/u/al_schmid)\
**Post date:** [July 30, 2007, 8:35pm UTC](https://www.ruby-forum.com/t/nomethoderror-in-action-view-helpers-form-helper-rbin/110086/4 "2007-07-30T20:35:29Z")

</div>

Ooops, I was too fast there…  
Went from lighttpd to mongrel…  
Now Rails tells me (via NoMethodError) that my “Artist” class has lost  
the method “quoted\_id” which is derived from ActiveRecords as far as I  
can see…  
BUT: The funny thing is: If I call that one page (a FORM post) right  
after I restarted mongrel, it works. If I enter the data into the form  
again and then post the form, boom, the NoMethodError strikes. This is  
driving me nuts…

Tried changing the environment.rb / boot.rb again, was no use…

Any ideas anyone?  
Thanks!  
al
