What would be used more preferably?
What will work faster?
For example I need create some link. What use? <a> or link_to?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Stylistically, you may prefer this
to this
mainly because it doesn’t mix the HTML tags with the ERB quite as bad. It all stays in ERB.
Another reason probably doesn’t apply to your situation right now but could apply in the future. The more view helpers like
link_tothat you use, the more globally configurable your application becomes. You may end up wanting to use a plugin in the future that globally modifies howlink_toworks, but obviously it wouldn’t apply if you used straight up<a>tags.