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 -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On 2/12/07, David Smit <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > > 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:4Can you post The first 4 lines of your routes.rb file please. Also what version of rails are you using? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Feb 11, 2007, at 9:41 PM, Daniel N wrote:> On 2/12/07, David Smit <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote: > > 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 > > 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 Biedenharn http://agileconsultingllc.com Rob-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On 2/12/07, Rob Biedenharn <Rob-GBZH0y1GwQfnZcttdmLDtcI/UQi/AW5J@public.gmane.org> wrote:> > On Feb 11, 2007, at 9:41 PM, Daniel N wrote: > > On 2/12/07, David Smit <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote: > > > > > > 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 > > > 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 Biedenharn http://agileconsultingllc.com > Rob-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org >That was what I was trying to get to, guess I should have looked further down the stack trace.. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Daniel ----- wrote:> On 2/12/07, David Smit <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> 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. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On 2/12/07, David Smit <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > > Daniel ----- wrote: > > On 2/12/07, David Smit <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> 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.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. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---