index.html 6.5 KB

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