Created
July 4, 2012 16:45
-
-
Save tizoc/3048265 to your computer and use it in GitHub Desktop.
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
module LikeRoutes | |
def self.registered(app) | |
url_for_like = app.url(app.record_name, | |
"#{app.base_url}/:id/like") | |
app.get url_for_like do | |
# ... | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment