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