# Don't know what this error means

**URL:** <https://www.ruby-forum.com/t/dont-know-what-this-error-means/85263>\
**Category:** Rails\
**Created:** [February 12, 2007, 3:20am UTC](https://www.ruby-forum.com/t/dont-know-what-this-error-means/85263 "2007-02-12T03:20:49Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![davidstokar](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/4da419/32.png) [@davidstokar](https://www.ruby-forum.com/u/davidstokar)\
**Post date:** [February 12, 2007, 3:20am UTC](https://www.ruby-forum.com/t/dont-know-what-this-error-means/85263/1 "2007-02-12T03:20:49Z")

</div>

Any idea what this error means?

=\> Booting WEBrick…  
C:/David/InstantRails/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action\_controller/routing.rb:651:in  
`method_missing': undefined method`resources’ for  
#ActionController::Routing::RouteSet:0x344769c (NoMethodError)  
from ./script/…/config/…/config/routes.rb:4  
from  
C:/David/InstantRails/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action\_controller/routing.rb:625:in  
`draw' from ./script/../config/../config/routes.rb:1 from C:/David/InstantRails/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:140:in`load’  
from  
C:/David/InstantRails/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active\_support/dependencies.rb:140:in  
`load' from C:/David/InstantRails/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/routing.rb:608:in`reload’  
from  
C:/David/InstantRails/ruby/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/initializer.rb:239:in  
`initialize_routing' from C:/David/InstantRails/ruby/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/initializer.rb:105:in`process’  
… 13 levels…  
from  
C:/David/InstantRails/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active\_support/dependencies.rb:147:in  
`require' from ./script/server:3 from -e:4:in`load’  
from -e:4

---

<div class="post-metadata">

**Author:** ![davidstokar](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/4da419/32.png) [@davidstokar](https://www.ruby-forum.com/u/davidstokar)\
**Post date:** [February 12, 2007, 3:42am UTC](https://www.ruby-forum.com/t/dont-know-what-this-error-means/85263/2 "2007-02-12T03:42:11Z")

</div>

On 2/12/07, David S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> from  
> /lib/active\_support/dependencies.rb:140:in  
> C:/David/InstantRails/ruby/lib/ruby/gems/1.8/gems/rails-1.1.6  
> /lib/initializer.rb:105:in  
> `process' ... 13 levels... from C:/David/InstantRails/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1 /lib/active_support/dependencies.rb:147:in `require’  
> from ./script/server:3  
> from -e:4:in `load’  
> from -e:4

Can you post The first 4 lines of your routes.rb file please. Also what  
version of rails are you using?

---

<div class="post-metadata">

**Author:** ![davidstokar](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/4da419/32.png) [@davidstokar](https://www.ruby-forum.com/u/davidstokar)\
**Post date:** [February 12, 2007, 3:58am UTC](https://www.ruby-forum.com/t/dont-know-what-this-error-means/85263/3 "2007-02-12T03:58:11Z")

</div>

On Feb 11, 2007, at 9:41 PM, Daniel N wrote:

> from  
> 1.3.1/lib/active\_support/dependencies.rb:140:in  
> C:/David/InstantRails/ruby/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/
> 
> Can you post The first 4 lines of your routes.rb file please. Also  
> what version of rails are you using?

It’s clearly Rails 1.1.6 and I suspect that from the other gems, that  
it’s not the 1.2RC1 either.

If that’s the case, then you appear to be using RESTful routes which  
were introduced with 1.2. If you can upgrade your Rails to 1.2.x,  
you should be able to use this feature.

-Rob

Rob B. [http://agileconsultingllc.com](http://agileconsultingllc.com)  
removed\_email\_address@domain.invalid

---

<div class="post-metadata">

**Author:** ![davidstokar](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/4da419/32.png) [@davidstokar](https://www.ruby-forum.com/u/davidstokar)\
**Post date:** [February 12, 2007, 4:00am UTC](https://www.ruby-forum.com/t/dont-know-what-this-error-means/85263/4 "2007-02-12T04:00:12Z")

</div>

On 2/12/07, Rob B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > /lib/action\_controller/routing.rb:651:in  
> > /lib/active\_support/dependencies.rb:140:in  
> > C:/David/InstantRails/ruby/lib/ruby/gems/1.8/gems/rails- 1.1.6  
> > `require’  
> > not the 1.2RC1 either.
> 
> If that’s the case, then you appear to be using RESTful routes which were  
> introduced with 1.2. If you can upgrade your Rails to 1.2.x, you should  
> be able to use this feature.
> 
> -Rob
> 
> Rob B. [http://agileconsultingllc.com](http://agileconsultingllc.com)  
> removed\_email\_address@domain.invalid

That was what I was trying to get to, guess I should have looked further  
down the stack trace…

---

<div class="post-metadata">

**Author:** ![davidstokar](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/4da419/32.png) [@davidstokar](https://www.ruby-forum.com/u/davidstokar)\
**Post date:** [February 12, 2007, 4:06am UTC](https://www.ruby-forum.com/t/dont-know-what-this-error-means/85263/5 "2007-02-12T04:06:32Z")

</div>

Daniel ----- wrote:

> On 2/12/07, David S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:
> 
> > from  
> > /lib/active\_support/dependencies.rb:140:in  
> > C:/David/InstantRails/ruby/lib/ruby/gems/1.8/gems/rails-1.1.6  
> > /lib/initializer.rb:105:in  
> > `process' ... 13 levels... from C:/David/InstantRails/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1 /lib/active_support/dependencies.rb:147:in `require’  
> > from ./script/server:3  
> > from -e:4:in `load’  
> > from -e:4
> 
> Can you post The first 4 lines of your routes.rb file please. Also what  
> version of rails are you using?

ActionController::Routing::Routes.draw do |map|

# A resource for each post type

map.resources :messages, :plans, :documents, :projects, :contacts,  
:member =\> { :download =\> :get }

Rails 1.1.6 I am using InstantRails though.

---

<div class="post-metadata">

**Author:** ![davidstokar](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/4da419/32.png) [@davidstokar](https://www.ruby-forum.com/u/davidstokar)\
**Post date:** [February 12, 2007, 4:11am UTC](https://www.ruby-forum.com/t/dont-know-what-this-error-means/85263/6 "2007-02-12T04:11:12Z")

</div>

On 2/12/07, David S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > > from
> 
> ActionController::Routing::Routes.draw do |map|
> 
> # A resource for each post type
> 
> map.resources :messages, :plans, :documents, :projects, :contacts,  
> :member =\> { :download =\> :get }
> 
> Rails 1.1.6 I am using InstantRails though.

As Rob said, the RESTful stuff didn’t get added to rails until R1.2 You  
need to update your rails. I don’t have experience with instant rails,  
but  
perhaps use the rake task to freeze rails to a paricular version.
