This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Chef < ActiveRecord::Base | |
| has_many :recipes | |
| has_many :ingredients, through: :recipes | |
| end | |
| class Recipe < ActiveRecord::Base | |
| has_many :recipes_ingredients | |
| has_many :ingredients, through: :recipes_ingredients | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <response> | |
| <logged-in>true</logged-in> | |
| <status>200 OK</status> | |
| <errors nil="true"></errors> | |
| <notices nil="true"></notices> | |
| <user> | |
| <id>1</id> | |
| <followed-by-current-user>false</followed-by-current-user> | |
| </user> | |
| </response> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| curl -u remi:good --request POST -d '' http://8tracks.com/users/1/unfollow.xml |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <response> | |
| <logged-in>true</logged-in> | |
| <status>200 OK</status> | |
| <errors nil="true"></errors> | |
| <notices nil="true"></notices> | |
| <user> | |
| <id>1</id> | |
| <followed-by-current-user>true</followed-by-current-user> | |
| </user> | |
| </response> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| curl -u remi:good --request POST -d '' http://8tracks.com/users/1/follow.xml |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <response> | |
| <logged-in>true</logged-in> | |
| <status>200 OK</status> | |
| <errors nil="true"></errors> | |
| <notices nil="true"></notices> | |
| <user> | |
| <id>1</id> | |
| <followed-by-current-user>true</followed-by-current-user> | |
| </user> | |
| </response> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| curl -u remi:good --request POST -d '' http://8tracks.com/users/1/toggle_follow.xml |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <response> | |
| <logged-in>true</logged-in> | |
| <status>200 OK</status> | |
| <errors nil="true"></errors> | |
| <notices nil="true"></notices> | |
| <track> | |
| <id>23</id> | |
| <faved-by-current-user>false</faved-by-current-user> | |
| </track> | |
| </response> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| curl -u remi:good --request POST -d '' http://8tracks.com/tracks/23/unfav.xml |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <response> | |
| <logged-in>true</logged-in> | |
| <status>200 OK</status> | |
| <errors nil="true"></errors> | |
| <notices nil="true"></notices> | |
| <track> | |
| <id>23</id> | |
| <faved-by-current-user>true</faved-by-current-user> | |
| </track> | |
| </response> |