Permalink
Browse files

Update the README to include a user url

  • Loading branch information...
1 parent d587388 commit 3e9d29f224fdd66dda50bf13f9abc18639d598a8 @dewski dewski committed Jul 1, 2012
Showing with 2 additions and 4 deletions.
  1. +2 −4 README.md
View
6 README.md
@@ -10,10 +10,9 @@ require 'json_builder'
json = JSONBuilder::Compiler.generate do
name 'Garrett Bjerkhoel'
email 'spam@garrettbjerkhoel.com'
- url root_path
+ url user_url(user)
address do
street '1234 1st Ave'
- street2 'Apt 1'
city 'New York'
state 'NY'
zip 10065
@@ -36,10 +35,9 @@ Which will generate:
{
"name": "Garrett Bjerkhoel",
"email": "spam@garrettbjerkhoel.com",
- "url": "/",
+ "url": "http://examplesite.com/dewski",
"address": {
"street": "1234 1st Ave",
- "street2": "Apt 1",
"city": "New York",
"state": "NY",
"zip": 10065

0 comments on commit 3e9d29f

Please sign in to comment.