# Undefined method error for a polymorphic route

**URL:** <https://www.ruby-forum.com/t/undefined-method-error-for-a-polymorphic-route/158627>\
**Category:** Rails\
**Created:** [January 26, 2009, 2:37am UTC](https://www.ruby-forum.com/t/undefined-method-error-for-a-polymorphic-route/158627 "2009-01-26T02:37:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pk16](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/b19c9b/32.png) [@pk16](https://www.ruby-forum.com/u/pk16)\
**Post date:** [January 26, 2009, 2:37am UTC](https://www.ruby-forum.com/t/undefined-method-error-for-a-polymorphic-route/158627/1 "2009-01-26T02:37:00Z")

</div>

Hi, I’m trying to upgrade a 2.0.2 app to 2.2.2, but first I decided to  
upgrade to 2.1.2 after reading some posts recommending to do this.

After firing up the app and running my tests, I now see that my  
polymorphic routes seem to be broken.

test\_should\_create\_footerpage(PagesControllerTest):  
NoMethodError: undefined method `footerpage\_url’ for #\<PagesController:  
0x4814648

> 

```
C:/InstantRails2/rails_apps/real_estate_application_2/vendor/rails/

```

actionpac  
k/lib/action\_controller/polymorphic\_routes.rb:105:in `send!’

Has anyone run into anything like this?
