mirah / dubious

A Web Framework Written in Mirah for running on AppEngine

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`dubious generate controller Widgets` creates singular class name

viking opened this issue · comments

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

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.

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