December 2011
3 posts
Rails path vs url helpers
Manually re-blogged from http://ianlotinsky.wordpress.com/2010/09/24/rails-path-and-url-helpers/ Sometimes I forget the simple differences between Rail’s helpers. This mini post is so I don’t forget. *_path Generates relative URLs: /users Used in views by link_to, form_for, etc. (per DHH) The browser maps relative URLs to absolute URLs based on the current page’s protocol and host (/users on the...
Dec 22nd
Dec 10th
Dec 2nd
1 note