95-733 Internet Technologies Spring 2008
Homework 3 Due Thursday, February 26, 2009
========== ===============================
Some Ruby On Rails Command Line Tools
================================
1. Build an entire Ruby directory structure.
I placed mine under the directory
~/mm6/www/95-733/examples.
examples>rails rails1
2. Create a controller with ruby script.
rails1>ruby script/generate controller say
3. Place this file (hello.rhtml) under app/views/say.
Ruby says "Yo Mike".
<%a = 32%>Ruby is <%=a%> degrees cool.
4. Run the default server (Mongrel).
rails1>ruby script/server
5. Visit the server.
http://localhost:3000/say/hello
Homework
========
1) Use Chapter 15 of Sebesta as a guide and build a
Ruby on Rails application that displays
Hello on a browser. The web
application will be visited with the URL:
http://localhost:3000/say/hello
Create a zip file containing the entire project and take
a screen shot of the browser. Submit both to
the assignment section of blackboard. No documentation is
required. You may use the command line tools or Netbeans.
2) Use Chapter 16 of Sebesta as a guide and build
the Ruby on Rails popcorn application that is described there.
Add a new style of popcorn to the current list. This new
style is called JiffeyPop and sells for $8.00 per pound.
Create a zip file containing the entire project and take
two screen shots of the browser. One screen shot will
show the user ordering and the second will be the after
purchase page. Submit the project and the screen shots
to the assignment section of blackboard. No documentation is
required. You may use the command line tools or Netbeans.