grammar in views
Posted
by jspooner
on Stack Overflow
See other posts from Stack Overflow
or by jspooner
Published on 2010-05-23T21:02:16Z
Indexed on
2010/05/23
21:51 UTC
Read the original article
Hit count: 382
ruby-on-rails
|inflection
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 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>
© Stack Overflow or respective owner