[Proposal][Change request] Update mail_to arguments to be similar like link_to

24 views
Skip to first unread message

Daniel Dimitrov

unread,
Oct 1, 2016, 12:22:55 PM10/1/16
to Ruby on Rails: Core
I am using rails for several years right now, but every time when I use "mail_to" helper with name I have tendency to put name like first attribute and email like second. It is because in my eyes mail_to should be similar like link_to where name and then path is standard syntax right now.

I propose to change it so it will work like that:

mail_to("so...@email.com") => <a href="mailto: so...@email.com"> so...@email.com </a>
mail_to("link text", "so...@email.com") => <a href="mailto: so...@email.com">link text</a>

What you think? Do you have same feeling about it?

Thanks.

Daniel
Reply all
Reply to author
Forward
0 new messages