removed ":shallow => true"

should have spotted that earlier

-duh

On 15 Jan, 11:52, Dr_Gavin <[email protected]> wrote:
> I've finally got my app running :www.thinkersplayground.com
>
> A new problem has arisen though :S
>
> My app was written in Rails 2.1 but Im running it on Rails 2.2.2 on my
> host
>
> Previously, all of my routes worked fine, they were all tested and
> life was kushty.
>
> Here's a sample of my routes.rb file:
>
>   map.namespace :private do |private|
>     private.resources :articles,
>       :controller => 'articles',
>       :has_one => :discussion,
>       :member => {:preview => :get, :submitted => :get, :approved
> => :get, :add_tags => :get, :submit => :get,
>         :publish => :get, :retire => :get, :tag_article => :post},
>       :collection => {:submitted_articles => :get, :approved_articles
> => :get, :my_articles => :get,
>         :blueprints => :get},
>       :shallow => true do |article|
>         article.resources :pages, :controller => 'pages'
>     end
>
>     private.resources :authors,
>       :controller => 'authors', :member => {:profile => :get} do |
> author|
>         author.resources :articles, :controller => 'articles'
>         author.resources :messages, :controller => 'messages'
>     end
>
>     private.resources :comments, :controller => 'comments', :member =>
> {:allow => :get, :remove => :get}
>
> When I run rake routes in Rails 2.2.2, only a few of these routes are
> recognised and so I get a 500 error.
>
> It doesn't notice, for example, edit_private_article_path(@article)
>
> Has routing changed in Rails 2.2 ?
>
> If so, any clues as to how I can fix this?
>
> Thanks
> Gavin
>
> On 13 Jan, 10:51, Dr_Gavin <[email protected]> wrote:
>
> > Hi all - I'm a noob when it comes to deploying a rails app and my
> > Hosting service providers offer almost no assistance. All the help
> > I've had so far has been misinformation from their Indian 'technical
> > advisers'
>
> > I'm pulling my hair out trying to get this thing launched
>
> > If anyone could spare 20mins to chat either on this thread or on MSN/
> > Skype I'd really appreciate it
>
> > thanks
--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to