开发者

grammar in views

I'm displaying a string like "I'm an Actor" or "I'm a skateboarder" and need to use a or an correctly.

Is there a nifty开发者_Python百科 rails view helper to see if a word starts with a vowel?

<p>I'm an <%= @user.skills %></p>

<p>I'm a <%= @user.skills %></p>


It never got into rails: https://rails.lighthouseapp.com/projects/8994/tickets/2566-add-aan-inflector-indefinitize

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜