1 get a rack application running locally
2 get to know the basic moving parts of the simplest rack app
first read this: http://whatcodecraves.com/articles/2012/07/23/ruby-on-rack
then... the app below is based on the example in the tutorial. to get the app running type 'ruby hellorack.rb' in terminal
complete the following steps to explore the different parts of this simple application:
1 rename the class to your name, e.g. AshleyApp
2 define the call method
3 print your name to the screen, e.g. Hello Ashley
4 make your name a h1 heading
5 change the color of your name to pink and link it to your student page
6 make the app run on a port different from 3000
post your solution as a gist in piazza
According to this tutorial (http://rubylearning.com/blog/a-quick-introduction-to-rack/) "To look at the Rack handlers available, in irb type: >> Rack::Handler.constants " however when I add that to irb I get:
NameError: uninitialized constant Rack
Any clue??