RailsでBase64を。
2010 年 6 月 30 日
Comments off
改行とるのをベタ実装してたらメソッドあったという話。
activesupport-2.3.8/lib/active_support/core_ext/base64/encoding.rb
10 def encode64s(value)
11 encode64(value).gsub(/\n/, '')
12 end
ほっほー。