I have a model called affiche and model user cl开发者_如何转开发ass User < ActiveRecord::Base
It seems pluralize only works within a view -- is there some way that my models can use pluralize开发者_JAVA百科 too?Rather than extend things, I just it like this:
I\'m developing a simple select. The thing is my code needs to be in spanish, so instead of using Role I have to use Rol (the plurar remains the same: Roles).
my locale is :de and I like to get this: Sheet.model_name.human.pluralize # => Belegs to add me a trailing \"e\" instead of \"s\"
I\'m using .NET Framework 3.5. So I think the EF is also 3.5. I saw something here: EF3.5 don\'t Singularize or Pluralize names.
Is it possible to use {% blocktrans %} with \"with\" and \"count\" at the same time? The documentation describes only the separate using:
I understand why a Rails index method would use the plural form of a resource - we\'re showing all projects, for example.
I found the ActiveSupport infl开发者_运维知识库ector class. Where can I find the code that initializes the inflector for English?The ActiveSupport inflector.rb file includes all the inflection librari
This question already has answers here: Closed 12 years ago. Possible Duplicate: Pluralize - Singularize
In .net 3.5 if I generate a linq to sql data context, it does 开发者_开发百科some wonderful magic to pluralize names.In my code I need to pluralize some terms.Can I use whatever method Linq is using t