Sunday, November 3, 2013

URL Encoding in Rails

Example use case - This is needed when making REST Api calls from Rails (for e.g. calling Google's Analytics API from a controller action)

http://stackoverflow.com/questions/2353742/url-encode-equivalent-in-ruby-on-rails
ERB::Util.url_encode
http://ruby-doc.org/stdlib-1.9.3/libdoc/erb/rdoc/ERB/Util.html 

No comments:

Post a Comment

Followers

Blog Archive