Hi, I would like a bunch of controllers handling something like an administration interface, hidden inside a directory (just to have controllers with the same name on controllers/ but that do all the editing stuff).
I tried:

merb-gen controller '/admin/articles'

and it worked as I expected, creating a module Admin with a class Articles inside. It's all evening I'm trying to route my requests to go in that Articles class and call the index action, and damn, I've got no clue.

At this point I have something like

match( "/:module/:controller/:action/:id" ).to( :controller => ":module/:controller" )

I also tried hardcoding everything, like match( "/admin/blabla" ) but nothing.

Can someone explain me how does this work ? ...

Should I use a part, a slice ?

Sorry, newbie here.
I'm having a lot of fun with Merb, thanks a lot guys.

  ngw

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to