link_to_category error

0 views
Skip to first unread message

cmoss

unread,
Oct 28, 2009, 1:34:53 PM10/28/09
to adva-cms
Hi There,

I've just started using Adva, and have a reasonable handle on things,
one thing I'm still not sure of is the way categories are routed, so
I've been using link_to_category to automatically generate the link
for a given Category:

<%=link_to_category(@section, @category)%>

Currently this is blowing up with:

undefined method `page_category_path' for #<ActionView::Base:
0x7f4187020358>

I've not changed any routes etc, and @section is clearly an instance
of Page, it just appears that this method does not exist - is this a
stub that I should be expanding somewhere?

Additionally, how should one access categories "manually"? I've
looked through the previous messages on the subject, and the consensus
seems to be that the following path should work:

/:section/categories/:category_title

however I'm consistently getting a no-route found. To test I fell
back to using category_id=1 as a query string - which works (@category
is populated) but doesn't feel very nice at all. What's the correct
URL schemes for categories?

Thanks a lot for any assistance.

Regards,

Corin
Reply all
Reply to author
Forward
0 new messages