mirah / dubious

A Web Framework Written in Mirah for running on AppEngine
Apache License 2.0
121 stars 13 forks source link

`dubious generate controller Widgets` creates singular class name #25

Closed viking closed 13 years ago

viking commented 13 years ago

Running dubious generate controller Widgets creates a controller class called WidgetController in a file called widgets_controller.mirah instead of WidgetsController

baroquebobcat commented 13 years ago

This has to do with how we pick names https://github.com/mirah/dubious/blob/master/lib/dubious/templates/generator/controller.mirah.tt

I'm guessing it's because classify singularizes, which implies we need to do controllers differently than models.

woodie commented 13 years ago

however rails handles this... we should dod the same