开发者

grammar in views

开发者 https://www.devze.com 2022-12-31 03:39 出处:网络
I\'m displaying a string like \"I\'m an Actor\" or \"I\'m a skateboarder\" and need to use a or an correctly.

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

精彩评论

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