# Map.resources and extensions

**URL:** <https://www.ruby-forum.com/t/map-resources-and-extensions/130772>\
**Category:** Radiant CMS\
**Created:** [March 3, 2008, 8:53am UTC](https://www.ruby-forum.com/t/map-resources-and-extensions/130772 "2008-03-03T08:53:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![site-master](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/13edae/32.png) [@site-master](https://www.ruby-forum.com/u/site-master)\
**Post date:** [March 3, 2008, 8:53am UTC](https://www.ruby-forum.com/t/map-resources-and-extensions/130772/1 "2008-03-03T08:53:30Z")

</div>

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  
errors.

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
  end
end

```

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

 \<%=h project.name %\> \<%=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?

Thanks

Mark K.

---

<div class="post-metadata">

**Author:** ![site-master](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/13edae/32.png) [@site-master](https://www.ruby-forum.com/u/site-master)\
**Post date:** [March 3, 2008, 4:38pm UTC](https://www.ruby-forum.com/t/map-resources-and-extensions/130772/2 "2008-03-03T16:38:50Z")

</div>

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