Skip to content

Commit

Permalink
Merge pull request railsgirls#1 from myabc/patch-1
Browse files Browse the repository at this point in the history
Correct instructions for deleting a file in Windows
  • Loading branch information
ksaa committed Apr 19, 2012
2 parents 333a51d + f42669d commit 990b50b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion _posts/2012-04-18-app.markdown
Expand Up @@ -180,10 +180,14 @@ to


If you try to open [http://localhost:3000](http://localhost:3000) it still shows the default page. Let’s make it redirect to the ideas page. If you try to open [http://localhost:3000](http://localhost:3000) it still shows the default page. Let’s make it redirect to the ideas page.


Run in the Terminal/Command Prompt: On OS X and Linux, in the Terminal run:


<pre><code><span class="ps1">$</span> rm public/index.html</code></pre> <pre><code><span class="ps1">$</span> rm public/index.html</code></pre>


In Windows, in the Command Prompt run:

<pre><code><span class="ps1"></span> del public\index.html</code></pre>

Then open config/routes.rb and add to the second line of the file Then open config/routes.rb and add to the second line of the file


<pre><code>root :to =&gt; redirect(&quot;/ideas&quot;)</code></pre> <pre><code>root :to =&gt; redirect(&quot;/ideas&quot;)</code></pre>
Expand Down

0 comments on commit 990b50b

Please sign in to comment.