Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

minor changes

  • Loading branch information...
commit 9393bc64e59e940314f064aa7e1ee722e35b173f 1 parent 1585e43
erik authored
Showing with 3 additions and 3 deletions.
  1. +0 −2  README.textile
  2. +3 −1 config/routes.rb
View
2  README.textile
@@ -27,11 +27,9 @@ Make any necessary edits to these if the defaults don't work for you. Spot.Us is
h3. Run basic setup tasks
-# comment out line 21 in routes.rb
# rake db:create:all
# rake db:migrate
# rake db:populate
-# uncomment line 21 in routes.rb
h3. Start your local server
View
4 config/routes.rb
@@ -18,7 +18,9 @@
map.connect "stories.:format", :controller => "news_items", :action => "index", :filter=>'unfunded'
map.connect "stories/:filter.:format", :controller => "news_items", :action => "index", :length=>"short", :requirements => {:filter=>/#{FILTERS_STORIES_STRING}/}
map.connect "stories/:filter/:length.:format", :controller => "news_items", :action => "index", :requirements => {:filter=>/#{FILTERS_STORIES_STRING}/, :length=>/full|short/}
- map.connect "stories/:filter/:topic.:format", :controller => "news_items", :action => "index", :requirements => {:filter=>/#{FILTERS_STORIES_STRING}/, :topic=>/#{Topic.all.map(&:seo_name).join('|').to_s}/}
+ if ActiveRecord::Base.connection.table_exists? 'topics'
+ map.connect "stories/:filter/:topic.:format", :controller => "news_items", :action => "index", :requirements => {:filter=>/#{FILTERS_STORIES_STRING}/, :topic=>/#{Topic.all.map(&:seo_name).join('|').to_s}/}
+ end
map.connnect "news_items", :controller => "news_items", :action => "search", :sort_by=>'asc'
map.connect '/auth/facebook', :controller => "sessions", :action => "facebook_login"
Please sign in to comment.
Something went wrong with that request. Please try again.