Created
March 29, 2011 17:56
-
-
Save PatrickLef/892867 to your computer and use it in GitHub Desktop.
This file contains 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
padrino generate project fisk | |
## app/models/blogger.rb | |
class Blogger < User | |
include BloggerUtils | |
end | |
## app/models/user.rb | |
class User | |
end | |
## app/models/mixins/blogger.rb | |
module BloggerUtils | |
end | |
## app/controllers/index.rb | |
Fisk.controller do | |
# Provides sets soo the controller ONLY accepts application/json and application/marshal | |
# accept headers. It should be able to be overriden by setting .json/.marshal on the | |
# end of the URI. But it doesn't always work in Padrino 0.9.4 | |
get '/' do | |
"hi" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment