Skip to content

Instantly share code, notes, and snippets.

View kenjione's full-sized avatar

Alex Chernyshev kenjione

View GitHub Profile
@kenjione
kenjione / permit_recursive_params.out
Created August 17, 2016 11:13 — forked from koenpunt/permit_recursive_params.out
ActionController::Parameters -> permit_recursive_params
{"tree"=>
{"name"=>"Australia",
"value"=>39904,
"id"=>6,
"description"=>"",
"string_array"=>["one", "two"],
"array_with_hashes"=>[{"a"=>"1"}, {"a"=>"2"}],
"type"=>{"name"=>"Other", "icon"=>"<i class=\"fa fa-pagelines\"></i>"},
"children"=>
[{"name"=>"Boxes",
@kenjione
kenjione / workaround.md
Created July 5, 2016 11:54 — forked from kgrz/workaround.md
Possible workaround for installing nokogiri 1.6.8 on OSX with brewed libxml2 2.9.4

Problem:

The following commands fail on OSX:

gem install nokogiri
gem install nokogiri -- --use-system-libraries
gem install nokogiri -- --use-system-libraries --with-xslt-dir=/usr/local/opt/libxslt --with-xml2-dir=/usr/local/opt/libxml2

Version: