15 16 17
# File 'lib/core/ext.rb', line 15 def to_param to_s end
11 12 13
# File 'lib/core/ext.rb', line 11 def to_query(key) "#{CGI.escape(key.to_s)}=#{CGI.escape(to_param.to_s)}" end