Rails Example Application - Typo
In this hands-on lab,
you are going to build typo example Rails application step by step.
Expected duration: 90 minutes
(excluding homework)
Software Needed
Before you begin, you need to install the following software on your
computer.
- Java Standard Development Kit (JDK™) version
6.0 (download)
- If you already have installed JDK 5.0 or JDK 6.0, you
can skip this.
- NetBeans IDE 6.1 (download)
- When you install NetBeans IDE, it will ask you which JDK
you want to use.
- Select All, which includes Ruby module.
- MySQL (download)
- 5543_rails_typo_app.zip (download)
- It contains this document and the lab contents
- Download it and unzip in a directory of your choice
OS platforms you can use
- Windows
- Solaris x86, Solaris Sparc
- Linux
- Mac OS X
Change Log
Things to do (by Sang Shin)
- Add exercise to change
- Add more explanation
Lab Exercises
Exercise 1: Build and run
"typo" sample application
In this exercise, you will get an exposure to more advanced
features of JRuby on Rails. This exercise is based on the
Putting
Filckr on Rails tutorial contributed by Brian Leonard.
This
exercise requires direct connection to the Internet and does not work
if you are working behind
a proxy.
- Open "Typo" NetBeans project
- Create database
- Migrate database (Create and populate tables)
- Run "Typo" NetBeans project
(1.1) Open "Typo"
NetBeans project
1. Open
Typo
NetBeans project.
- Select File->Open Project (Ctrl+Shift+O). The Open Project dialog box appears.
- Browse down to <LAB_UNZIPPED_DIRECTORY>/rails_typo_app/solutions
directory.
- If you unzipped the 5543_rails_typo_app.zip
file under C:\handsonlabs
directory under Windows, the directory to which you want
to browse down should be C:\handsonlabs\rails_typo_app\solutions.
- If you unzipped the 5543_rails_typo_app.zip
file under $HOME/handsonlabs
directory under Solaris/Linux, the directory to which you want
to browse down should be $HOME/handsonlabs/rails_typo_app/solutions.
- Select Typo.
- Click Open Project.
- Observe that the Typo
project node appears under Projects tab
window.
(1.2) Create database
(1.3) Migrate database
(Create and populate tables)
1. Open
Typo
NetBe
(1.4) Run "Typo"
NetBeans project
1. Right click
Typo project
node and select Run.
Summary
In this exercise, you have built
and run a "Typo"
sample
application.
return to
the top
Homework
Exercise (for people
who
are taking Sang Shin's "Java EE Programming online course")
<tbd>