Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Update the README to include a user url
  • Loading branch information
dewski committed Jul 1, 2012
1 parent d587388 commit 3e9d29f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions README.md
Expand Up @@ -10,10 +10,9 @@ require 'json_builder'
json = JSONBuilder::Compiler.generate do json = JSONBuilder::Compiler.generate do
name 'Garrett Bjerkhoel' name 'Garrett Bjerkhoel'
email 'spam@garrettbjerkhoel.com' email 'spam@garrettbjerkhoel.com'
url root_path url user_url(user)
address do address do
street '1234 1st Ave' street '1234 1st Ave'
street2 'Apt 1'
city 'New York' city 'New York'
state 'NY' state 'NY'
zip 10065 zip 10065
Expand All @@ -36,10 +35,9 @@ Which will generate:
{ {
"name": "Garrett Bjerkhoel", "name": "Garrett Bjerkhoel",
"email": "spam@garrettbjerkhoel.com", "email": "spam@garrettbjerkhoel.com",
"url": "/", "url": "http://examplesite.com/dewski",
"address": { "address": {
"street": "1234 1st Ave", "street": "1234 1st Ave",
"street2": "Apt 1",
"city": "New York", "city": "New York",
"state": "NY", "state": "NY",
"zip": 10065 "zip": 10065
Expand Down

0 comments on commit 3e9d29f

Please sign in to comment.