When we define routes in routes.rb using the name like map.some_link.We can use the link in two ways- some_link_url, some_link_path.
- What are the differences between the two?
- Which is more secure to be used?
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.
I had the same question and I wrote a small post about this in my blog
The reason is summarized here (I found this on a forum):
Here is another explanation which says it depends on whether we need to use an absolute URI when linking to an SSL site from a non-SSL site, and vice versa.
What I have read so far, doesn’t suggest that any of them is more secure than the other. It really comes down to what is the “proper” usage.