Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- => {"body_id"=>"", "body"=>"Test", "title"=>"1234", "body_class"=>"", "path"=>"", "section"=>"", "sub_section"=>""}
- hash = {}
- params[:page].each do |key,value|
- if !value.empty?
- hash[key] = value
- end
- end
- => {"body"=>"Test", "title"=>"1234", "body_class"=>nil, "path"=>nil, "section"=>nil, "sub_section"=>nil}
Add Comment
Please, Sign In to add comment