I'm following the crash course right now, and I have issues as well with exactly this.
OW::getRouter()->addRoute(new OW_Route('contactus.index', 'contact', "CONTACTUS_CTRL_Contact", 'index'));
The name of the class and action (function) is way similar, so it's hard to make out what to put where.
So, I'm trying to understand what each of these things do. As I understand (and seen in other plugins) it is working like this:
OW::getRuoter(): Tells the systems Routher there is something going oun with the routing
->addRoute (new Ow Route): Here you go system, create a new route!
So what will the new route be? A bit tricky to understand. Where does the 'contactus.index' come from?
As I get it it is a made-up name, just an internal name to keep track of the route within the system. You could actually use any name you want, as long as there is no other route with the same name, but the standard is that you give it the name of the plugin and then add the view or action name. But if you want to you could name it whatever you want. (is this a correct assumption by me?)
Then there is a the 'contact' part. What do we put in there?
Okay, here I'm guessing that you mean the shortened url, eg. http://yourdomain/{url} that is supposed to be defined.
CONTACTUS_CTRL_Contact: is the controller, or class that is going to be used. The class should be within the ./pluginname/controllers/ folder and have te same name as the class within it.
index: is the defined action, in this case the function within the controller (class).
This is how I understand the line, but I'm quite shure I've missunderstood it, because I can't get it to work:P