Perfect, issue created: https://github.com/Hobo/hobo/issues/110

El 22/08/14 a las #4, JezC escribió:
> Yeah, I like the warning on the controller. It's unusual, IME, but a
> real issue.
> 
> Resource pluralisation is more of a substantial issue, IMO, and I can't
> think of when I'd want that to happen.
> 
> Cheers, JeremyC.
> 
> On Tuesday, 19 August 2014 18:36:37 UTC+1, Ignacio Huerta wrote:
> 
>     Yes, this has happened to me too :). I wouldn't pluralize it
>     automatically because a user might want to create a singular
>     controller,
>     like "StaticController" or "ConfigController".
> 
>     What do you think about printing a small text alerting the user when
>     creating the controller? Something like "Hey, you are about to create a
>     controller with a singular word. Controllers are most usually
>     written in
>     plural, like ThingsController. It's possible to create singular
>     controllers but you will have to customise the views. For example the
>     navbar won't work out of the box."
> 
>     Warm regards,
>     Ignacio
> 
>     El 13/08/14 a las #4, Henry Baragar escribió:
>     > 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]
> <mailto:[email protected]>.
> To post to this group, send email to [email protected]
> <mailto:[email protected]>.
> Visit this group at http://groups.google.com/group/hobousers.
> For more options, visit https://groups.google.com/d/optout.

-- 
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