Yeah. I've also similarly been confused when accidentally pluralising a 
model or resource in the generator - a singularisation would be helpful 
there. I've spent tens of minutes staring at the screen wondering what was 
wrong with an association, only to discover an extraneous or missing "s".

Cheers, JeremyC.

On Wednesday, 13 August 2014 05:33:38 UTC+1, hbaragar wrote:
>
>  Hi,
>
> I don't know if this is a Hobo quirk or a Rails one, but has anyone else 
> tried to do the following:
>
> hobo g controller MyModel        # singular not plural
>
> and get all confused because things "half worked"?  It generates the 
> correct routes (in the singular) and the correct navbar label (pluralized!, 
> but not clickable), but it takes a while for it to dawn on me that I forget 
> to pluralize the model when creating the controller.  I wonder how many 
> other people have been tripped up by this.
>
> Would it make sense that the first thing that the hobo controller 
> generator does is to pluralize the controller name?  Note that the 
> generator already accepts multiple equivalent forms for the controller 
> name:  MyModels and my_models, Admin::MyModels and admin/my_models (which 
> it singularizes when creating the controller file name).
>
> Henry
>
>
> -- 
> Henry Baragar
> Instantiated Software Inc.http://www.instantiated.ca
>
>  

-- 
You received this message because you are subscribed to the Google Groups "Hobo 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/hobousers.
For more options, visit https://groups.google.com/d/optout.

Reply via email to