Agile Web Development With Rails
From OSGuru
[edit]
Install RubyGems in Windows
Download : Ruby Installer For Windows (http://rubyinstaller.rubyforge.org)
- Type like this in command window
C:\> gem install rails --include-dependencies
- Update rails using this command frequently
C:\> gem update rails
[edit]
Creating a Demo Application
- Create Directory named demo
C:\> rails demo
- Start up a ruby web server
C:\> ruby script/server
[edit]
Making Controller & View
- generate a controller file using this command
C:\> ruby script/generate controller Say
- then, generate this rhtml ruby template file for view
<html>
<head>
<title>Hello, Rails!</title>
</head>
<body>
<h1>Hello from Rails!</h1>
</body>
</html>
