# Upgrade to 2.0.2 issue re active record method missing

**URL:** <https://www.ruby-forum.com/t/upgrade-to-2-0-2-issue-re-active-record-method-missing/129458>\
**Category:** Rails\
**Created:** [February 18, 2008, 8:28pm UTC](https://www.ruby-forum.com/t/upgrade-to-2-0-2-issue-re-active-record-method-missing/129458 "2008-02-18T20:28:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![doug3](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/b3f665/32.png) [@doug3](https://www.ruby-forum.com/u/doug3)\
**Post date:** [February 18, 2008, 8:28pm UTC](https://www.ruby-forum.com/t/upgrade-to-2-0-2-issue-re-active-record-method-missing/129458/1 "2008-02-18T20:28:49Z")

</div>

Greetings,

Thanks to this weekend’s BlueHost upgrade (without any notice to their  
customers) to rails version 2.0.2 my application broke. Since they seem  
incapable of fixing the issue, I decided to try and upgrade the  
application to version 2.0.2.

In doing this, I updated all gems, etc. The webbrick server comes up  
just fine and the application starts.

However, when the application attempts to update a database record, I  
get the following error trace:

c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active\_record/attribute\_methods.rb:205:in  
`method\_missing’

app/controllers/questionnaire\_controller.rb:110:in `index’

Here is a snippet of the code referred to above at line 110 of  
questionnaire\_controller.rb:

108\> questionnaire.session\_id = session.session\_id  
109\>  
110\> if questionnaire.update  
111\> #questionnaire update succeeded.  
112\> @ScreenName = “questionnaire”  
113\> render :action =\> ‘index’

114\> else  
115\> #questionnaire update failed

Does anyone have any idea what I need to do to fix this? It appears  
active record no longer likes my line: “questionnaire.update”

However, I don’t know what to change it to.

Thanks

---

<div class="post-metadata">

**Author:** ![doug3](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/b3f665/32.png) [@doug3](https://www.ruby-forum.com/u/doug3)\
**Post date:** [February 18, 2008, 8:34pm UTC](https://www.ruby-forum.com/t/upgrade-to-2-0-2-issue-re-active-record-method-missing/129458/2 "2008-02-18T20:34:53Z")

</div>

On Feb 18, 2008 1:28 PM, Doug M. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> Thanks to this weekend’s BlueHost upgrade (without any notice to their  
> customers) to rails version 2.0.2 my application broke. Since they seem  
> incapable of fixing the issue

All they have to do is install the version of Rails your app uses.  
It’s completely possible to have multiple versions of Rails  
installed.

> gem list --local|grep rails  
> rails (2.0.2, 2.0.1, 1.2.5, 1.2.4, 1.2.3)

You also have the option of freezing your app to a specific version of  
Rails.

And then at my first convenience I would move to a smarter host.

–  
Greg D.  
[http://destiney.com/](http://destiney.com/)

---

<div class="post-metadata">

**Author:** ![doug3](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/b3f665/32.png) [@doug3](https://www.ruby-forum.com/u/doug3)\
**Post date:** [February 18, 2008, 8:59pm UTC](https://www.ruby-forum.com/t/upgrade-to-2-0-2-issue-re-active-record-method-missing/129458/3 "2008-02-18T20:59:26Z")

</div>

Greg, thanks for the input. You can bet I’ll be looking around for  
another hosting service. However, in the meantime, I’d still like to  
get this application back up and running. Do you have any idea why  
“questionnaire.update” would fail?

Thanks,

Doug

Greg D. wrote:

> On Feb 18, 2008 1:28 PM, Doug M. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> wrote:
> 
> > Thanks to this weekend’s BlueHost upgrade (without any notice to their  
> > customers) to rails version 2.0.2 my application broke. Since they seem  
> > incapable of fixing the issue
> 
> All they have to do is install the version of Rails your app uses.  
> It’s completely possible to have multiple versions of Rails  
> installed.
> 
> > gem list --local|grep rails  
> > rails (2.0.2, 2.0.1, 1.2.5, 1.2.4, 1.2.3)
> 
> You also have the option of freezing your app to a specific version of  
> Rails.
> 
> And then at my first convenience I would move to a smarter host.
> 
> –  
> Greg D.  
> [http://destiney.com/](http://destiney.com/)

---

<div class="post-metadata">

**Author:** ![doug3](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/b3f665/32.png) [@doug3](https://www.ruby-forum.com/u/doug3)\
**Post date:** [February 18, 2008, 11:59pm UTC](https://www.ruby-forum.com/t/upgrade-to-2-0-2-issue-re-active-record-method-missing/129458/4 "2008-02-18T23:59:54Z")

</div>

Here is the fix:

Assuming the code has previously set attributes in the questionnaire  
object (like my code does),

change questionnaire.update to

questionnaire.update\_attributes(questionnaire.attributes)
