routes.rb problem

you should always use.. RESTful routes.. instead of above try this:

map.resources :projects, :has_many => :issues