Ruby on Rails Tuesday, January 4, 2011

On Tuesday, January 4, 2011 2:36:51 PM UTC-5, Ruby-Forum.com User wrote:

about_path => '/about'
about_url  => 'http://localhost:3000/about'

From this thing, why did I use "about_path" here and NOT "about_url"?
Are they differeny then?

As you seem to have already discovered, the _url helper contain the domain, while the _path helpers do not.

--
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment