Map.resources and extensions

Hi list,

I am tracking radiant svn and am setting up a new extension following
the tutorial.

I have the extension loading up and am using scaffold generated by
rails 2.

The problem i am having is that i get a lot of

undefined method `project_path’ for #ActionView::Base:0x34205ec

Not being very good at routing i was hoping someone could help.

in my routes i have

define_routes do |map|

  map.namespace(:admin) do |admin|
     admin.resources :projects

rake routes shows they are set up correctly, but if i include
something like (this is stock rails scaffold)

<%=h %> <%=h project.mailing_list %> <%= link_to 'Show', project %> ** This line trips the error ** <%= link_to 'Edit', edit_project_path(project) %> <%= link_to 'Destroy', project, :confirm => 'Are you sure?', :method => :delete %>

It gives me the above error.

Anyone have an idea? does map.resources work with extensions or am i
going to have to wright named routes instead?


Mark K.

Hey Mark,
I replied to the other message you sent. Were you not able to see my