From b661c9603a3d053f940e50fc1b63ff568f9b98f8 Mon Sep 17 00:00:00 2001 From: Sam Stephenson Date: Tue, 8 Nov 2005 04:26:34 +0000 Subject: Added an omnipresent RailsInfoController with a properties action that delivers an HTML rendering of Rails::Info (but only when local_request? is true). Added a new default index.html which fetches this with Ajax. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2933 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- railties/html/index.html | 343 +++++++++++++++++++++++++++++++++++++---------- 1 file changed, 272 insertions(+), 71 deletions(-) (limited to 'railties/html/index.html') diff --git a/railties/html/index.html b/railties/html/index.html index d780f8e029..952ee4febb 100644 --- a/railties/html/index.html +++ b/railties/html/index.html @@ -1,78 +1,279 @@ - + - - Rails: Welcome on board - - - + #header { + background-image: url("images/rails.png"); + background-repeat: no-repeat; + background-position: top left; + height: 64px; + } + #header h1, #header h2 {margin: 0} + #header h2 { + color: #888; + font-weight: normal; + font-size: 16px; + } + + + #about h3 { + margin: 0; + margin-bottom: 10px; + font-size: 14px; + } + + #about-content { + background-color: #ffd; + border: 1px solid #fc0; + margin-left: -11px; + } + #about-content table { + margin-top: 10px; + margin-bottom: 10px; + font-size: 11px; + border-collapse: collapse; + } + #about-content td { + padding: 10px; + padding-top: 3px; + padding-bottom: 3px; + } + #about-content td.name {color: #555} + #about-content td.value {color: #000} + + #about-content.failure { + background-color: #fcc; + border: 1px solid #f00; + } + #about-content.failure p { + margin: 0; + padding: 10px; + } + + + #getting-started { + border-top: 1px solid #ccc; + margin-top: 25px; + padding-top: 15px; + } + #getting-started h1 { + margin: 0; + font-size: 20px; + } + #getting-started h2 { + margin: 0; + font-size: 14px; + font-weight: normal; + color: #333; + margin-bottom: 25px; + } + #getting-started ol { + margin-left: 0; + padding-left: 0; + } + #getting-started li { + font-size: 18px; + color: #888; + margin-bottom: 25px; + } + #getting-started li h2 { + margin: 0; + font-weight: normal; + font-size: 18px; + color: #333; + } + #getting-started li p { + color: #555; + font-size: 13px; + } + + + #search { + margin: 0; + padding-top: 10px; + padding-bottom: 10px; + font-size: 11px; + } + #search input { + font-size: 11px; + margin: 2px; + } + #search-text {width: 170px} + + + #sidebar ul { + margin-left: 0; + padding-left: 0; + } + #sidebar ul h3 { + margin-top: 25px; + font-size: 16px; + padding-bottom: 10px; + border-bottom: 1px solid #ccc; + } + #sidebar li { + list-style-type: none; + } + #sidebar ul.links li { + margin-bottom: 5px; + } + + + + + + + +
+ -

Congratulations, you've put Ruby on Rails!

+
+ -

Before you move on, verify that the following conditions have been met:

- -
    -
  1. The log and public directories must be writable to the web server (chmod -R 775 log and chmod -R 775 public). -
  2. - The shebang line in the public/dispatch* files must reference your Ruby installation.
    - You might need to change it to #!/usr/bin/env ruby or point directly at the installation. -
  3. -
  4. - Rails on Apache needs to have the cgi handler and mod_rewrite enabled.
    - Somewhere in your httpd.conf, you should have:
    - AddHandler cgi-script .cgi
    - LoadModule rewrite_module libexec/httpd/mod_rewrite.so
    - AddModule mod_rewrite.c -
  5. -
- -

Take the following steps to get started:

- -
    -
  1. Create empty development and test databases for your application.
    - Recommendation: Use *_development and *_test names, such as basecamp_development and basecamp_test
    - Warning: Don't point your test database at your development database, it'll destroy the latter on test runs! -
  2. Edit config/database.yml with your database settings. -
  3. Create controllers and models using the generator in script/generate
    - Help: Run the generator with no arguments for documentation -
  4. See all the tests run by running rake. -
  5. Develop your Rails application! -
  6. Setup Apache with FastCGI (and Ruby bindings), if you need better performance -
  7. Remove the dispatches you don't use (so if you're on FastCGI, delete/move dispatch.rb, dispatch.cgi and gateway.cgi)
  8. -
- -

- 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 config/routes.rb of the form: -

  map.connect '', :controller => 'wiki/page', :action => 'show', :title => 'Welcome'
-

- -

- Having problems getting up and running? First try debugging it yourself by looking at the log files.
- Then try the friendly Rails community on the web or on IRC - (FreeNode#rubyonrails). -

- - - + + +
+

Getting started

+

Here’s how to get rolling:

+ +
    +
  1. +

    Create your databases and edit database.yml

    +

    Instructions here

    +
  2. + +
  3. +

    Use script/generate to create your models and controllers

    +

    Instructions here

    +
  4. + +
  5. +

    Set up a default route and remove or rename this file

    +

    Instructions here

    +
  6. +
+
+
+ + +
+ + \ No newline at end of file -- cgit v1.2.3