On 15 February 2011 21:05, Rodrigo Alves Vieira <[email protected]> wrote:
> Hello everyone, what's the real difference between root_url and root_path in
> Rails, for example. Apparently both lead to the same route in the
> application.

They are both methods that return a string so it is easy to find out.
<%= "root_path = #{root_path}, root_url = #{root_url}" %>

Colin

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to