Re: [Rails] Inflection working everywhere but not propogating to AR table name?
On Sat, May 7, 2011 at 3:03 PM, Michael Pavling <pavling@gmail.com> wrote:
Thanks Michael and Colin.... yeah, so I named the model wrong as datam was not in my vocabulary. Now everything works right. I'll add it to my debug checklist to make sure I know the singualar and plurals of the words....
On 7 May 2011 20:56, David Kahn <dk@structuralartistry.com> wrote:Singular.
> I agree I should be using 'datum' for the plural form
"datum" is singular, "data" is plural
> That aside, what is strange is ... it seems things are reversed.
Nothing is strange when you're inflecting the right way round:
>> "auth_datum".pluralize
>> "auth_data".singularize
=> "auth_datum"
=> "auth_data"
Thanks Michael and Colin.... yeah, so I named the model wrong as datam was not in my vocabulary. Now everything works right. I'll add it to my debug checklist to make sure I know the singualar and plurals of the words....
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home