search for: rubygeek

Displaying 2 results from an estimated 2 matches for "rubygeek".

Did you mean: mobygeek
2007 Nov 02
5
RSpec, RESTful nested routes and :path_prefix
Dear list, In the app we are making we have a rout something like this: map.resources :projects do |projects| projects.resources :pages, :controller =>"Wiki::Pages", :path_prefix => "/projects/:project_id/ wiki", :name_prefix => "project_wiki_" end But I can''t get RSpec(I''m very new to it) to accept this. It keeps throwing errors:
2007 Oct 28
2
failing test with nested controller routes
...ap.resources :groups, :controller => ''admin/groups'', :name_prefix => "admin_", :path_prefix => "admin" any ideas? the groups_url(id) is the only route that is failing in the test. thanks :) -- http://rubygeek.com - my blog featuring: Ruby, PHP and Perl http://DevChix.com - boys can''t have all the fun