Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Update the README to include a user url

  • Loading branch information...
commit 3e9d29f224fdd66dda50bf13f9abc18639d598a8 1 parent d587388
@dewski dewski authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.