index2.html 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>Ruby on Rails: Welcome aboard</title>
  5. <style type="text/css" media="screen">
  6. body {
  7. margin: 0;
  8. margin-bottom: 25px;
  9. padding: 0;
  10. background-color: #f0f0f0;
  11. font-family: "Lucida Grande", "Bitstream Vera Sans", "Verdana";
  12. font-size: 13px;
  13. color: #333;
  14. }
  15. h1 {
  16. font-size: 28px;
  17. color: #000;
  18. }
  19. a {color: #03c}
  20. a:hover {
  21. background-color: #03c;
  22. color: white;
  23. text-decoration: none;
  24. }
  25. #page {
  26. background-color: #f0f0f0;
  27. width: 750px;
  28. margin: 0;
  29. margin-left: auto;
  30. margin-right: auto;
  31. }
  32. #content {
  33. float: left;
  34. background-color: white;
  35. border: 3px solid #aaa;
  36. border-top: none;
  37. padding: 25px;
  38. width: 500px;
  39. }
  40. #sidebar {
  41. float: right;
  42. width: 175px;
  43. }
  44. #footer {
  45. clear: both;
  46. }
  47. #header, #about, #getting-started {
  48. padding-left: 75px;
  49. padding-right: 30px;
  50. }
  51. #header {
  52. background-image: url("assets/rails.png");
  53. background-repeat: no-repeat;
  54. background-position: top left;
  55. height: 64px;
  56. }
  57. #header h1, #header h2 {margin: 0}
  58. #header h2 {
  59. color: #888;
  60. font-weight: normal;
  61. font-size: 16px;
  62. }
  63. #about h3 {
  64. margin: 0;
  65. margin-bottom: 10px;
  66. font-size: 14px;
  67. }
  68. #about-content {
  69. background-color: #ffd;
  70. border: 1px solid #fc0;
  71. margin-left: -55px;
  72. margin-right: -10px;
  73. }
  74. #about-content table {
  75. margin-top: 10px;
  76. margin-bottom: 10px;
  77. font-size: 11px;
  78. border-collapse: collapse;
  79. }
  80. #about-content td {
  81. padding: 10px;
  82. padding-top: 3px;
  83. padding-bottom: 3px;
  84. }
  85. #about-content td.name {color: #555}
  86. #about-content td.value {color: #000}
  87. #about-content ul {
  88. padding: 0;
  89. list-style-type: none;
  90. }
  91. #about-content.failure {
  92. background-color: #fcc;
  93. border: 1px solid #f00;
  94. }
  95. #about-content.failure p {
  96. margin: 0;
  97. padding: 10px;
  98. }
  99. #getting-started {
  100. border-top: 1px solid #ccc;
  101. margin-top: 25px;
  102. padding-top: 15px;
  103. }
  104. #getting-started h1 {
  105. margin: 0;
  106. font-size: 20px;
  107. }
  108. #getting-started h2 {
  109. margin: 0;
  110. font-size: 14px;
  111. font-weight: normal;
  112. color: #333;
  113. margin-bottom: 25px;
  114. }
  115. #getting-started ol {
  116. margin-left: 0;
  117. padding-left: 0;
  118. }
  119. #getting-started li {
  120. font-size: 18px;
  121. color: #888;
  122. margin-bottom: 25px;
  123. }
  124. #getting-started li h2 {
  125. margin: 0;
  126. font-weight: normal;
  127. font-size: 18px;
  128. color: #333;
  129. }
  130. #getting-started li p {
  131. color: #555;
  132. font-size: 13px;
  133. }
  134. #sidebar ul {
  135. margin-left: 0;
  136. padding-left: 0;
  137. }
  138. #sidebar ul h3 {
  139. margin-top: 25px;
  140. font-size: 16px;
  141. padding-bottom: 10px;
  142. border-bottom: 1px solid #ccc;
  143. }
  144. #sidebar li {
  145. list-style-type: none;
  146. }
  147. #sidebar ul.links li {
  148. margin-bottom: 5px;
  149. }
  150. .filename {
  151. font-style: italic;
  152. }
  153. </style>
  154. <script type="text/javascript">
  155. function about() {
  156. info = document.getElementById('about-content');
  157. if (window.XMLHttpRequest)
  158. { xhr = new XMLHttpRequest(); }
  159. else
  160. { xhr = new ActiveXObject("Microsoft.XMLHTTP"); }
  161. xhr.open("GET","rails/info/properties",false);
  162. xhr.send("");
  163. info.innerHTML = xhr.responseText;
  164. info.style.display = 'block'
  165. }
  166. </script>
  167. </head>
  168. <body>
  169. <div id="page">
  170. <div id="sidebar">
  171. <ul id="sidebar-items">
  172. <li>
  173. <h3>Browse the documentation</h3>
  174. <ul class="links">
  175. <li><a href="http://guides.rubyonrails.org/">Rails Guides</a></li>
  176. <li><a href="http://api.rubyonrails.org/">Rails API</a></li>
  177. <li><a href="http://www.ruby-doc.org/core/">Ruby core</a></li>
  178. <li><a href="http://www.ruby-doc.org/stdlib/">Ruby standard library</a></li>
  179. </ul>
  180. </li>
  181. </ul>
  182. </div>
  183. <div id="content">
  184. <div id="header">
  185. <h1>Welcome aboard</h1>
  186. <h2>You&rsquo;re riding Ruby on Rails!</h2>
  187. </div>
  188. <div id="about">
  189. <h3><a href="rails/info/properties" onclick="about(); return false">About your application&rsquo;s environment</a></h3>
  190. <div id="about-content" style="display: none"></div>
  191. </div>
  192. <div id="getting-started">
  193. <h1>Getting started</h1>
  194. <h2>Here&rsquo;s how to get rolling:</h2>
  195. <ol>
  196. <li>
  197. <h2>Use <code>rails generate</code> to create your models and controllers</h2>
  198. <p>To see all available options, run it without parameters.</p>
  199. </li>
  200. <li>
  201. <h2>Set up a default route and remove <span class="filename">public/index.html</span></h2>
  202. <p>Routes are set up in <span class="filename">config/routes.rb</span>.</p>
  203. </li>
  204. <li>
  205. <h2>Create your database</h2>
  206. <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>
  207. </li>
  208. </ol>
  209. </div>
  210. </div>
  211. <div id="footer">&nbsp;</div>
  212. </div>
  213. </body>
  214. </html>