3

I haven't been able to find something somewhat similar to rails nested resources. I want to be able to define routes like

Contributors/3/Activities

which is just simply ActivitiesController, Index, with Contributor_Id = 3

I know I could manually define this specific route (I wouldnt know how) but what I'm looking for here is actually some recommendations on getting a flexible solution for these kind of scenarios.

jcolebrand
  • 15,889
  • 12
  • 75
  • 121
nacho10f
  • 5,816
  • 6
  • 42
  • 73
  • This is an interesting question. In the app I'm working on now I've ended up defining all my routes by hand and it's a pain. – Shea Daniels Feb 10 '11 at 04:59

1 Answers1

0

Take a look at Here and Here to see if that might do the trick for you. It is a custom routing engine for RESTful routes done by Steve Hodgkiss.

nickmoriarty
  • 1,253
  • 19
  • 21
  • that looks promising.. although apparently it doesnt seem to work with razor?.. Ill check and post back – nacho10f Feb 10 '11 at 04:35