Created
September 28, 2010 15:54
-
-
Save gma/601250 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
# To redirect to your latest article when somebody hits the home page | |
# of your Nesta site, try this: | |
# | |
# $ mkdir -p local | |
# $ cat >> local/app.rb # then paste in this code and type Ctrl-D | |
get "/" do | |
latest = Page.find_articles[0] | |
redirect latest.abspath | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment