index.html 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295
  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. <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
  21. <title>Ruby on Rails: Welcome aboard</title>
  22. <style type="text/css" media="screen">
  23. body {
  24. margin: 0;
  25. margin-bottom: 25px;
  26. padding: 0;
  27. background-color: #f0f0f0;
  28. font-family: "Lucida Grande", "Bitstream Vera Sans", "Verdana";
  29. font-size: 13px;
  30. color: #333;
  31. }
  32. h1 {
  33. font-size: 28px;
  34. color: #000;
  35. }
  36. a {color: #03c}
  37. a:hover {
  38. background-color: #03c;
  39. color: white;
  40. text-decoration: none;
  41. }
  42. #page {
  43. background-color: #f0f0f0;
  44. width: 750px;
  45. margin: 0;
  46. margin-left: auto;
  47. margin-right: auto;
  48. }
  49. #content {
  50. float: left;
  51. background-color: white;
  52. border: 3px solid #aaa;
  53. border-top: none;
  54. padding: 25px;
  55. width: 500px;
  56. }
  57. #sidebar {
  58. float: right;
  59. width: 175px;
  60. }
  61. #footer {
  62. clear: both;
  63. }
  64. #header, #about, #getting-started {
  65. padding-left: 75px;
  66. padding-right: 30px;
  67. }
  68. #header {
  69. background-image: url("images/rails.png");
  70. background-repeat: no-repeat;
  71. background-position: top left;
  72. height: 64px;
  73. }
  74. #header h1, #header h2 {margin: 0}
  75. #header h2 {
  76. color: #888;
  77. font-weight: normal;
  78. font-size: 16px;
  79. }
  80. #about h3 {
  81. margin: 0;
  82. margin-bottom: 10px;
  83. font-size: 14px;
  84. }
  85. #about-content {
  86. background-color: #ffd;
  87. border: 1px solid #fc0;
  88. margin-left: -11px;
  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. #search {
  151. margin: 0;
  152. padding-top: 10px;
  153. padding-bottom: 10px;
  154. font-size: 11px;
  155. }
  156. #search input {
  157. font-size: 11px;
  158. margin: 2px;
  159. }
  160. #search-text {width: 170px}
  161. #sidebar ul {
  162. margin-left: 0;
  163. padding-left: 0;
  164. }
  165. #sidebar ul h3 {
  166. margin-top: 25px;
  167. font-size: 16px;
  168. padding-bottom: 10px;
  169. border-bottom: 1px solid #ccc;
  170. }
  171. #sidebar li {
  172. list-style-type: none;
  173. }
  174. #sidebar ul.links li {
  175. margin-bottom: 5px;
  176. }
  177. </style>
  178. <script type="text/javascript" src="javascripts/prototype.js"></script>
  179. <script type="text/javascript" src="javascripts/effects.js"></script>
  180. <script type="text/javascript">
  181. function about() {
  182. if (Element.empty('about-content')) {
  183. new Ajax.Updater('about-content', 'rails/info/properties', {
  184. method: 'get',
  185. onFailure: function() {Element.classNames('about-content').add('failure')},
  186. onComplete: function() {new Effect.BlindDown('about-content', {duration: 0.25})}
  187. });
  188. } else {
  189. new Effect[Element.visible('about-content') ?
  190. 'BlindUp' : 'BlindDown']('about-content', {duration: 0.25});
  191. }
  192. }
  193. window.onload = function() {
  194. $('search-text').value = '';
  195. $('search').onsubmit = function() {
  196. $('search-text').value = 'site:rubyonrails.org ' + $F('search-text');
  197. }
  198. }
  199. </script>
  200. </head>
  201. <body>
  202. <div id="page">
  203. <div id="sidebar">
  204. <ul id="sidebar-items">
  205. <li>
  206. <form id="search" action="http://www.google.com/search" method="get">
  207. <input type="hidden" name="hl" value="en" />
  208. <input type="text" id="search-text" name="q" value="site:rubyonrails.org " />
  209. <input type="submit" value="Search" /> the Rails site
  210. </form>
  211. </li>
  212. <li>
  213. <h3>Join the community</h3>
  214. <ul class="links">
  215. <li><a href="http://www.rubyonrails.org/">Ruby on Rails</a></li>
  216. <li><a href="http://weblog.rubyonrails.org/">Official weblog</a></li>
  217. <li><a href="http://wiki.rubyonrails.org/">Wiki</a></li>
  218. </ul>
  219. </li>
  220. <li>
  221. <h3>Browse the documentation</h3>
  222. <ul class="links">
  223. <li><a href="http://api.rubyonrails.org/">Rails API</a></li>
  224. <li><a href="http://stdlib.rubyonrails.org/">Ruby standard library</a></li>
  225. <li><a href="http://corelib.rubyonrails.org/">Ruby core</a></li>
  226. <li><a href="http://guides.rubyonrails.org/">Rails Guides</a></li>
  227. </ul>
  228. </li>
  229. </ul>
  230. </div>
  231. <div id="content">
  232. <div id="header">
  233. <h1>Welcome aboard</h1>
  234. <h2>You&rsquo;re riding Ruby on Rails!</h2>
  235. </div>
  236. <div id="about">
  237. <h3><a href="rails/info/properties" onclick="about(); return false">About your application&rsquo;s environment</a></h3>
  238. <div id="about-content" style="display: none"></div>
  239. </div>
  240. <div id="getting-started">
  241. <h1>Getting started</h1>
  242. <h2>Here&rsquo;s how to get rolling:</h2>
  243. <ol>
  244. <li>
  245. <h2>Use <code>script/generate</code> to create your models and controllers</h2>
  246. <p>To see all available options, run it without parameters.</p>
  247. </li>
  248. <li>
  249. <h2>Set up a default route and remove or rename this file</h2>
  250. <p>Routes are set up in config/routes.rb.</p>
  251. </li>
  252. <li>
  253. <h2>Create your database</h2>
  254. <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>
  255. </li>
  256. </ol>
  257. </div>
  258. </div>
  259. <div id="footer">&nbsp;</div>
  260. </div>
  261. </body>
  262. </html>