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