4 <title>Ruby on Rails: Welcome aboard
</title>
5 <style type=
"text/css" media=
"screen">
10 background-color: #f0f0f0;
11 font-family:
"Lucida Grande",
"Bitstream Vera Sans",
"Verdana";
23 background-color: #
03c;
25 text-decoration: none;
30 background-color: #f0f0f0;
39 background-color: white;
40 border:
3px solid #aaa;
55 #header, #about, #getting-started {
62 background-image: url(
"assets/rails.png");
63 background-repeat: no-repeat;
64 background-position: top left;
67 #header h1, #header h2 {margin:
0}
82 background-color: #ffd;
83 border:
1px solid #fc0;
87 #about-content table {
91 border-collapse: collapse;
98 #about-content td.name {color: #
555}
99 #about-content td.value {color: #
000}
103 list-style-type: none;
106 #about-content.failure {
107 background-color: #fcc;
108 border:
1px solid #f00;
110 #about-content.failure p {
117 border-top:
1px solid #ccc;
121 #getting-started h1 {
125 #getting-started h2 {
132 #getting-started ol {
136 #getting-started li {
141 #getting-started li h2 {
147 #getting-started li p {
160 padding-bottom:
10px;
161 border-bottom:
1px solid #ccc;
164 list-style-type: none;
166 #sidebar ul.links li {
174 <script type=
"text/javascript">
176 info
= document
.getElementById('about-content');
177 if (window
.XMLHttpRequest
)
178 { xhr
= new XMLHttpRequest(); }
180 { xhr
= new ActiveXObject("Microsoft.XMLHTTP"); }
181 xhr
.open("GET","rails/info/properties",false);
183 info
.innerHTML
= xhr
.responseText
;
184 info
.style
.display
= 'block'
191 <ul id=
"sidebar-items">
193 <h3>Browse the documentation
</h3>
195 <li><a href=
"http://guides.rubyonrails.org/">Rails Guides
</a></li>
196 <li><a href=
"http://api.rubyonrails.org/">Rails API
</a></li>
197 <li><a href=
"http://www.ruby-doc.org/core/">Ruby core
</a></li>
198 <li><a href=
"http://www.ruby-doc.org/stdlib/">Ruby standard library
</a></li>
206 <h1>Welcome aboard
</h1>
207 <h2>You
’re riding Ruby on Rails!
</h2>
211 <h3><a href=
"rails/info/properties" onclick=
"about(); return false">About your application
’s environment
</a></h3>
212 <div id=
"about-content" style=
"display: none"></div>
215 <div id=
"getting-started">
216 <h1>Getting started
</h1>
217 <h2>Here
’s how to get rolling:
</h2>
221 <h2>Use
<code>rails generate
</code> to create your models and controllers
</h2>
222 <p>To see all available options, run it without parameters.
</p>
226 <h2>Set up a default route and remove
<span class=
"filename">public/index.html
</span></h2>
227 <p>Routes are set up in
<span class=
"filename">config/routes.rb
</span>.
</p>
231 <h2>Create your database
</h2>
232 <p>Run
<code>rake db:create
</code> to create your database. If you're not using SQLite (the default), edit
<span class=
"filename">config/database.yml
</span> with your username and password.
</p>
238 <div id=
"footer"> </div>