Skip to content

Instantly share code, notes, and snippets.

@jiikko
Created December 13, 2013 00:52
Show Gist options
  • Save jiikko/7938330 to your computer and use it in GitHub Desktop.
Save jiikko/7938330 to your computer and use it in GitHub Desktop.
[14] pry(#<RSpec::Core::ExampleGroup::Nested_1::Nested_4>)> JSON.parse(Spot.last.to_json)
=> {"id"=>11,
"title"=>"スポット0000000011",
"traffic_route"=>"MyString",
"address"=>"MyString",
"address_area"=>nil,
"kana"=>"MyString",
"tel"=>"MyString",
"powered_by"=>"MyString",
"control_by"=>nil,
"description"=>nil,
"hp_url"=>nil,
"city_id"=>1,
"intro"=>"MyText",
"intro_catch"=>nil,
"icatch_cap"=>nil,
"body"=>"MyText",
"draft"=>false,
"prefecture_id"=>1,
"lat"=>35.74293147,
"lng"=>139.38699759,
"zoom"=>nil,
"created_at"=>"2013-12-13T09:49:54.865+09:00",
"updated_at"=>"2013-12-13T09:49:54.865+09:00"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment