Thank you Tom,

to me this problem is solved, I know now how not to run into it.
Anyhow, the hobo_model_resource names are limited to words that can be
pluralized by the ActiveSupport inflector. This is not all to obvious
to someone new to hobo, like me. Maybe the "BuenosAires" example
wasn't a good one, but I am sure there are tons of words like
acronyms, non-english words, etc. that might make sense to the
developer, but not to the ActiveSupport inflector. A little side-note
in the documentation or the FAQ could help.

Thanks again, Keno


On Mar 18, 11:42 am, Tom Locke <[email protected]> wrote:
> > Seems that any hobo_model_resource name that terminates in 's' causes
> > this problem.
>
> > script/generate hobo_model_resource BuenosAires name:string  ---------
>
> That'll be a problem with the ActiveSupport inflector:
>
> >> "city".pluralize
> => "cities"
> >> "Buenos Aires".pluralize
>
> => "Buenos Aires"
>
> It doesn't know how to pluralize "Buenos Aires".
>
> Come to think of it, nor do I : )
>
> You can teach the inflector about new words, but it seems like a very strange 
> name for a model..?
>
> Tom

-- 
You received this message because you are subscribed to the Google Groups "Hobo 
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/hobousers?hl=en.

Reply via email to