Creation of new VotingBooth rails application to expose the
[selectricity] / public / index.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
2    "http://www.w3.org/TR/html4/loose.dtd">
3 <html>
4 <head>
5   <title>Rails: Welcome on board</title>
6   <style>
7     body { background-color: #fff; color: #333; }
8
9     body, p, ol, ul, td {
10       font-family: verdana, arial, helvetica, sans-serif;
11       font-size:   12px;
12       line-height: 18px;
13     }
14
15     li {
16       margin-bottom: 7px;
17     }
18
19     pre {
20       background-color: #eee;
21       padding: 10px;
22       font-size: 11px;
23     }
24
25     a { color: #000; }
26     a:visited { color: #666; }
27     a:hover { color: #fff; background-color:#000; }
28   </style>
29 </head>
30 <body>
31
32 <h1>Congratulations, you've put Ruby on Rails!</h1>
33
34 <p><b>Before you move on</b>, verify that the following conditions have been met:</p>
35
36 <ol>
37   <li>The log and public directories must be writable to the web server (<code>chmod -R 775 log</code> and <code>chmod -R 775 public</code>).
38   <li>
39     The shebang line in the public/dispatch* files must reference your Ruby installation. <br/>
40     You might need to change it to <code>#!/usr/bin/env ruby</code> or point directly at the installation.
41   </li>
42   <li>
43     Rails on Apache needs to have the cgi handler and mod_rewrite enabled.  <br/>
44     Somewhere in your httpd.conf, you should have:<br/>
45     <code>AddHandler cgi-script .cgi</code><br/>
46     <code>LoadModule rewrite_module     libexec/httpd/mod_rewrite.so</code><br/>
47     <code>AddModule mod_rewrite.c</code>
48   </li>
49 </ol>
50
51 <p>Take the following steps to get started:</p>
52
53 <ol>
54   <li>Create empty development and test databases for your application.<br/>
55     <small>Recommendation: Use *_development and *_test names, such as basecamp_development and basecamp_test</small><br/>
56     <small>Warning: Don't point your test database at your development database, it'll destroy the latter on test runs!</small>
57   <li>Edit config/database.yml with your database settings.
58   <li>Create controllers and models using the generator in <code>script/generate</code> <br/>
59     <small>Help: Run the generator with no arguments for documentation</small>
60   <li>See all the tests run by running <code>rake</code>.
61   <li>Develop your Rails application!
62   <li>Setup Apache with <a href="http://www.fastcgi.com">FastCGI</a> (and <a href="http://raa.ruby-lang.org/list.rhtml?name=fcgi">Ruby bindings</a>), if you need better performance
63   <li>Remove the dispatches you don't use (so if you're on FastCGI, delete/move dispatch.rb, dispatch.cgi and gateway.cgi)</li>
64 </ol>
65
66 <p>
67   Trying to setup a default page for Rails using Routes? You'll have to delete this file (public/index.html) to get under way. Then define a new route in <tt>config/routes.rb</tt> of the form:
68   <pre>  map.connect '', :controller => 'wiki/page', :action => 'show', :title => 'Welcome'</pre>
69 </p>
70
71 <p>
72   Having problems getting up and running? First try debugging it yourself by looking at the log files. <br/>
73   Then try the friendly Rails community <a href="http://www.rubyonrails.org">on the web</a> or <a href="http://www.rubyonrails.org/show/IRC">on IRC</a>
74   (<a href="irc://irc.freenode.net/#rubyonrails">FreeNode#rubyonrails</a>).
75 </p>
76
77 </body>
78 </html>

Benjamin Mako Hill || Want to submit a patch?