GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009!  [ hide ]

public
Fork of robbyrussell/rubyurl
Clone URL: git://github.com/adelcambre/rubyurl.git
Changing / to redirect to /home and updating routes and robots

git-svn-id: https://svn.roundhaus.com/planetargon/rubyurl_2-0/trunk@92 
f0bc2f90-cf15-dc11-b192-0016e6374d05
robbyrussell (author)
Thu Dec 13 17:02:55 -0800 2007
commit  678d6db681303b09bd7f65ddda6e96ecb2088ecd
tree    2ebfc0505a25ea778ce7a69c4872dbe113faaf36
parent  6f261e7b85c2e5f308d2f1dc46907c7237182a17
...
1
2
3
 
 
 
 
4
 
5
6
7
...
1
2
3
4
5
6
7
8
9
10
11
12
0
@@ -1,7 +1,12 @@
0
 class LinksController < ApplicationController
0
 
0
   def index
0
+ redirect_to '/home'
0
+ end
0
+
0
+ def home
0
     @link = Link.new
0
+ render :action => 'index'
0
   end
0
 
0
   def create
...
20
21
22
 
23
24
25
...
20
21
22
23
24
25
26
0
@@ -20,6 +20,7 @@ ActionController::Routing::Routes.draw do |map|
0
   map.connect 'about', :controller => 'links', :action => 'about'
0
   map.connect 'api', :controller => 'links', :action => 'api'
0
   map.connect 'report-abuse', :controller => 'links', :action => 'report'
0
+ map.connect 'home', :controller => 'links', :action => 'home'
0
   
0
   # Install the default route as the lowest priority.
0
   map.connect ':controller/:action/:id.:format'
...
4
5
6
7
8
 
 
9
...
4
5
6
 
7
8
9
10
0
@@ -4,4 +4,5 @@ User-agent: Googlebot
0
 Disallow: *
0
 Allow: /about
0
 Allow: /api
0
-Allow: /report-abuse
0
\ No newline at end of file
0
+Allow: /report-abuse
0
+Allow: /home
0
\ No newline at end of file

Comments

    No one has commented yet.