Skip to content

kayinrage/single_nested_hash_to_param

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

====== ====== ==== == =====
SINGLE NESTED HASH TO PARAM
====== ====== ==== == =====

This plugin extend hash class with single_nested_hash_to_param method.
It works like to_param but for single-neste hash like for example
{:person=>{:name=>"Irek", :surname=>"Skrobis", :profession=>"Developer"}}

Installation:
=============
ruby script/plugin install git@github.com/kayinrage/single_nested_hash_to_param.git

Examples:
=========
hsh = {:person=>{:name=>"Irek", :surname=>"Skrobis", :profession=>"Developer"}}
hsh.single_nested_hash_to_param
=> "?person[name]=Irek&person[surname]=Skrobis&person[profession]=Developer"



Copyright (c) 2010 Irenuesz Skrobis, released under the MIT license

About

This plugin allow you to convert single nested hash into param

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages