Rails-based website for local business
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

239 lines
5.6 KiB

  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("images/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. </style>
  151. <script type="text/javascript">
  152. function about() {
  153. info = document.getElementById('about-content');
  154. if (window.XMLHttpRequest)
  155. { xhr = new XMLHttpRequest(); }
  156. else
  157. { xhr = new ActiveXObject("Microsoft.XMLHTTP"); }
  158. xhr.open("GET","rails/info/properties",false);
  159. xhr.send("");
  160. info.innerHTML = xhr.responseText;
  161. info.style.display = 'block'
  162. }
  163. </script>
  164. </head>
  165. <body>
  166. <div id="page">
  167. <div id="sidebar">
  168. <ul id="sidebar-items">
  169. <li>
  170. <h3>Browse the documentation</h3>
  171. <ul class="links">
  172. <li><a href="http://api.rubyonrails.org/">Rails API</a></li>
  173. <li><a href="http://stdlib.rubyonrails.org/">Ruby standard library</a></li>
  174. <li><a href="http://corelib.rubyonrails.org/">Ruby core</a></li>
  175. <li><a href="http://guides.rubyonrails.org/">Rails Guides</a></li>
  176. </ul>
  177. </li>
  178. </ul>
  179. </div>
  180. <div id="content">
  181. <div id="header">
  182. <h1>Welcome aboard</h1>
  183. <h2>You&rsquo;re riding Ruby on Rails!</h2>
  184. </div>
  185. <div id="about">
  186. <h3><a href="rails/info/properties" onclick="about(); return false">About your application&rsquo;s environment</a></h3>
  187. <div id="about-content" style="display: none"></div>
  188. </div>
  189. <div id="getting-started">
  190. <h1>Getting started</h1>
  191. <h2>Here&rsquo;s how to get rolling:</h2>
  192. <ol>
  193. <li>
  194. <h2>Use <code>rails generate</code> to create your models and controllers</h2>
  195. <p>To see all available options, run it without parameters.</p>
  196. </li>
  197. <li>
  198. <h2>Set up a default route and remove or rename this file</h2>
  199. <p>Routes are set up in config/routes.rb.</p>
  200. </li>
  201. <li>
  202. <h2>Create your database</h2>
  203. <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>
  204. </li>
  205. </ol>
  206. </div>
  207. </div>
  208. <div id="footer">&nbsp;</div>
  209. </div>
  210. </body>
  211. </html>