Skip to content

Instantly share code, notes, and snippets.

@joshuapaling
Last active December 24, 2015 23:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joshuapaling/6878112 to your computer and use it in GitHub Desktop.
Save joshuapaling/6878112 to your computer and use it in GitHub Desktop.
Spree upgrade errors - rake aborted! Invalid route name, already in use: 'root'
* executing "cd -- /var/www/vhosts/sneakerology.com.au/staging/releases/20131008015449 && RAILS_ENV=production RAILS_GROUPS=assets bundle exec rake assets:precompile"
servers: ["sneakerology.com.au"]
[sneakerology.com.au] executing command
** [out :: sneakerology.com.au] rake aborted!
** [out :: sneakerology.com.au] Invalid route name, already in use: 'root'
** [out :: sneakerology.com.au] You may have defined two routes with the same name using the `:as` option, or you may be overriding a route already defined by a resource with the same naming. For the latter, you can restrict the routes created with `resources` as explained here:
** [out :: sneakerology.com.au] http://guides.rubyonrails.org/routing.html#restricting-the-routes-created
** [out :: sneakerology.com.au] /var/www/vhosts/sneakerology.com.au/staging/shared/bundle/ruby/1.9.1/gems/actionpack-4.0.0/lib/action_dispatch/routing/route_set.rb:409:in `add_route'
** [out :: sneakerology.com.au] /var/www/vhosts/sneakerology.com.au/staging/shared/bundle/ruby/1.9.1/gems/actionpack-4.0.0/lib/action_dispatch/routing/mapper.rb:1440:in `add_route'
** [out :: sneakerology.com.au] /var/www/vhosts/sneakerology.com.au/staging/shared/bundle/ruby/1.9.1/gems/actionpack-4.0.0/lib/action_dispatch/routing/mapper.rb:1417:in `decomposed_match'
** [out :: sneakerology.com.au] /var/www/vhosts/sneakerology.com.au/staging/shared/bundle/ruby/1.9.1/gems/actionpack-4.0.0/lib/action_dispatch/routing/mapper.rb:1398:in `block in match'
** [out :: sneakerology.com.au] /var/www/vhosts/sneakerology.com.au/staging/shared/bundle/ruby/1.9.1/gems/actionpack-4.0.0/lib/action_dispatch/routing/mapper.rb:1389:in `each'
** [out :: sneakerology.com.au] /var/www/vhosts/sneakerology.com.au/staging/shared/bundle/ruby/1.9.1/gems/actionpack-4.0.0/lib/action_dispatch/routing/mapper.rb:1389:in `match'
** [out :: sneakerology.com.au] /var/www/vhosts/sneakerology.com.au/staging/shared/bundle/ruby/1.9.1/gems/actionpack-4.0.0/lib/action_dispatch/routing/mapper.rb:330:in `root'
** [out :: sneakerology.com.au] /var/www/vhosts/sneakerology.com.au/staging/shared/bundle/ruby/1.9.1/gems/actionpack-4.0.0/lib/action_dispatch/routing/mapper.rb:1459:in `root'
** [out :: sneakerology.com.au] /var/www/vhosts/sneakerology.com.au/staging/shared/bundle/ruby/1.9.1/bundler/gems/spree-382cf1164dd1/frontend/config/routes.rb:3:in `block in <top (required)>'
** [out :: sneakerology.com.au] /var/www/vhosts/sneakerology.com.au/staging/shared/bundle/ruby/1.9.1/gems/actionpack-4.0.0/lib/action_dispatch/routing/mapper.rb:514:in `instance_exec'
** [out :: sneakerology.com.au] /var/www/vhosts/sneakerology.com.au/staging/shared/bundle/ruby/1.9.1/gems/actionpack-4.0.0/lib/action_dispatch/routing/mapper.rb:514:in `block in with_default_scope'
** [out :: sneakerology.com.au] /var/www/vhosts/sneakerology.com.au/staging/shared/bundle/ruby/1.9.1/gems/actionpack-4.0.0/lib/action_dispatch/routing/mapper.rb:718:in `scope'
** [out :: sneakerology.com.au] /var/www/vhosts/sneakerology.com.au/staging/shared/bundle/ruby/1.9.1/gems/actionpack-4.0.0/lib/action_dispatch/routing/mapper.rb:513:in `with_default_scope'
** [out :: sneakerology.com.au] /var/www/vhosts/sneakerology.com.au/staging/shared/bundle/ruby/1.9.1/gems/actionpack-4.0.0/lib/action_dispatch/routing/route_set.rb:314:in `eval_block'
** [out :: sneakerology.com.au] /var/www/vhosts/sneakerology.com.au/staging/shared/bundle/ruby/1.9.1/bundler/gems/spree-382cf1164dd1/core/lib/spree/core/routes.rb:25:in `eval_block'
** [out :: sneakerology.com.au] /var/www/vhosts/sneakerology.com.au/staging/shared/bundle/ruby/1.9.1/gems/railties-4.0.0/lib/rails/railtie/configurable.rb:30:in `method_missing'
** [out :: sneakerology.com.au] /var/www/vhosts/sneakerology.com.au/staging/shared/bundle/ruby/1.9.1/bundler/gems/spree-382cf1164dd1/core/lib/spree/core/routes.rb:18:in `block in draw_routes'
** [out :: sneakerology.com.au] /var/www/vhosts/sneakerology.com.au/staging/shared/bundle/ruby/1.9.1/bundler/gems/spree-382cf1164dd1/core/lib/spree/core/routes.rb:18:in `each'
** [out :: sneakerology.com.au] /var/www/vhosts/sneakerology.com.au/staging/shared/bundle/ruby/1.9.1/bundler/gems/spree-382cf1164dd1/core/lib/spree/core/routes.rb:18:in `draw_routes'
** [out :: sneakerology.com.au] /var/www/vhosts/sneakerology.com.au/staging/shared/bundle/ruby/1.9.1/bundler/gems/spree-382cf1164dd1/core/config/routes.rb:1:in `<top (required)>'
** [out :: sneakerology.com.au] /var/www/vhosts/sneakerology.com.au/staging/shared/bundle/ruby/1.9.1/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:222:in `load'
** [out :: sneakerology.com.au] /var/www/vhosts/sneakerology.com.au/staging/shared/bundle/ruby/1.9.1/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:222:in `block in load'
** [out :: sneakerology.com.au] /var/www/vhosts/sneakerology.com.au/staging/shared/bundle/ruby/1.9.1/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:213:in `load_dependency'
** [out :: sneakerology.com.au] /var/www/vhosts/sneakerology.com.au/staging/shared/bundle/ruby/1.9.1/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:222:in `load'
** [out :: sneakerology.com.au] /var/www/vhosts/sneakerology.com.au/staging/shared/bundle/ruby/1.9.1/gems/railt
** [out :: sneakerology.com.au] ies-4.0.0/lib/rails/application/routes_reloader.rb:40:in `block in load_paths'
** [out :: sneakerology.com.au] /var/www/vhosts/sneakerology.com.au/staging/shared/bundle/ruby/1.9.1/gems/railties-4.0.0/lib/rails/application/routes_reloader.rb:40:in `each'
** [out :: sneakerology.com.au] /var/www/vhosts/sneakerology.com.au/staging/shared/bundle/ruby/1.9.1/gems/railties-4.0.0/lib/rails/application/routes_reloader.rb:40:in `load_paths'
** [out :: sneakerology.com.au] /var/www/vhosts/sneakerology.com.au/staging/shared/bundle/ruby/1.9.1/gems/railties-4.0.0/lib/rails/application/routes_reloader.rb:16:in `reload!'
** [out :: sneakerology.com.au] /var/www/vhosts/sneakerology.com.au/staging/shared/bundle/ruby/1.9.1/gems/railties-4.0.0/lib/rails/application/routes_reloader.rb:26:in `block in updater'
** [out :: sneakerology.com.au] /var/www/vhosts/sneakerology.com.au/staging/shared/bundle/ruby/1.9.1/gems/activesupport-4.0.0/lib/active_support/file_update_checker.rb:75:in `call'
** [out :: sneakerology.com.au] /var/www/vhosts/sneakerology.com.au/staging/shared/bundle/ruby/1.9.1/gems/activesupport-4.0.0/lib/active_support/file_update_checker.rb:75:in `execute'
** [out :: sneakerology.com.au] /var/www/vhosts/sneakerology.com.au/staging/shared/bundle/ruby/1.9.1/gems/railties-4.0.0/lib/rails/application/routes_reloader.rb:27:in `updater'
** [out :: sneakerology.com.au] /var/www/vhosts/sneakerology.com.au/staging/shared/bundle/ruby/1.9.1/gems/railties-4.0.0/lib/rails/application/routes_reloader.rb:6:in `execute_if_updated'
** [out :: sneakerology.com.au] /var/www/vhosts/sneakerology.com.au/staging/shared/bundle/ruby/1.9.1/gems/railties-4.0.0/lib/rails/application/finisher.rb:69:in `block in <module:Finisher>'
** [out :: sneakerology.com.au] /var/www/vhosts/sneakerology.com.au/staging/shared/bundle/ruby/1.9.1/gems/railties-4.0.0/lib/rails/initializable.rb:30:in `instance_exec'
** [out :: sneakerology.com.au] /var/www/vhosts/sneakerology.com.au/staging/shared/bundle/ruby/1.9.1/gems/railties-4.0.0/lib/rails/initializable.rb:30:in `run'
** [out :: sneakerology.com.au] /var/www/vhosts/sneakerology.com.au/staging/shared/bundle/ruby/1.9.1/gems/railties-4.0.0/lib/rails/initializable.rb:55:in `block in run_initializers'
** [out :: sneakerology.com.au] /var/www/vhosts/sneakerology.com.au/staging/shared/bundle/ruby/1.9.1/gems/railties-4.0.0/lib/rails/initializable.rb:54:in `run_initializers'
** [out :: sneakerology.com.au] /var/www/vhosts/sneakerology.com.au/staging/shared/bundle/ruby/1.9.1/gems/railties-4.0.0/lib/rails/application.rb:215:in `initialize!'
** [out :: sneakerology.com.au] /var/www/vhosts/sneakerology.com.au/staging/shared/bundle/ruby/1.9.1/gems/railties-4.0.0/lib/rails/railtie/configurable.rb:30:in `method_missing'
** [out :: sneakerology.com.au] /var/www/vhosts/sneakerology.com.au/staging/releases/20131008015449/config/environment.rb:5:in `<top (required)>'
** [out :: sneakerology.com.au] /var/www/vhosts/sneakerology.com.au/staging/shared/bundle/ruby/1.9.1/gems/polyglot-0.3.3/lib/polyglot.rb:63:in `require'
** [out :: sneakerology.com.au] /var/www/vhosts/sneakerology.com.au/staging/shared/bundle/ruby/1.9.1/gems/polyglot-0.3.3/lib/polyglot.rb:63:in `require'
** [out :: sneakerology.com.au] /var/www/vhosts/sneakerology.com.au/staging/shared/bundle/ruby/1.9.1/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228:in `block in require'
** [out :: sneakerology.com.au] /var/www/vhosts/sneakerology.com.au/staging/shared/bundle/ruby/1.9.1/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:213:in `load_dependency'
** [out :: sneakerology.com.au] /var/www/vhosts/sneakerology.com.au/staging/shared/bundle/ruby/1.9.1/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228:in `require'
** [out :: sneakerology.com.au] /var/www/vhosts/sneakerology.com.au/staging/shared/bundle/ruby/1.9.1/gems/railties-4.0.0/lib/rails/application.rb:189:in `require_environment!'
** [out :: sneakerology.com.au] /var/www/vhosts/sneakerology.com.au/staging/shared/bundle/ruby/1.9.1/gems/railties-4.0.0/lib/rails/application.rb:249:in `block in run_tasks_blocks'
** [out :: sneakerology.com.au] /var/www/vhosts/sneakerology.com.au/staging/shared/bundle/ruby/1.9.1/gems/sprockets-rails-2.0.0/lib/sprockets/rails/task.rb:54:in `block (2 levels) in define'
** [out :: sneakerology.com.au] Tasks: TOP => environment
** [out :: sneakerology.com.au] (See full trace by running task with --trace)
command finished in 32511ms
*** [deploy:update_code] rolling back
source 'https://rubygems.org'
gem 'rails', '4.0.0'
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
gem 'pg'
gem 'sass-rails', "~> 4.0.0"
gem "compass-rails", "~> 2.0.alpha.0"
gem 'coffee-rails', '~> 4.0.0'
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
gem 'therubyracer', :platforms => :ruby
gem 'uglifier', '>= 1.3.0'
gem 'jquery-rails'
# To use ActiveModel has_secure_password
# gem 'bcrypt-ruby', '~> 3.0.0'
# To use Jbuilder templates for JSON
# gem 'jbuilder'
# Use unicorn as the app server
# gem 'unicorn'
group :development do
gem "capistrano", "~> 2.15.5"
gem 'rvm-capistrano'
gem 'rails-footnotes'
gem "better_errors"
gem "binding_of_caller"
#gem 'sass-rails-source-maps'
end
# To use debugger
# gem 'debugger'
# gem 'spree', '2.1.1'
# Temporarily use 2-1-stable because 2.1.1 has an issue where default currency gets reset to USD each time.
gem 'spree', github: 'spree/spree', branch: '2-1-stable'
gem 'spree_gateway', :git => 'https://github.com/spree/spree_gateway.git', :branch => '2-1-stable'
gem 'spree_auth_devise', :git => 'https://github.com/spree/spree_auth_devise.git', :branch => '2-1-stable'
GIT
remote: git://github.com/spree/spree.git
revision: 382cf1164dd19b2665c459d63baeda1e6c58d5f7
branch: 2-1-stable
specs:
spree (2.1.2.beta)
spree_api (= 2.1.2.beta)
spree_backend (= 2.1.2.beta)
spree_cmd (= 2.1.2.beta)
spree_core (= 2.1.2.beta)
spree_frontend (= 2.1.2.beta)
spree_sample (= 2.1.2.beta)
spree_api (2.1.2.beta)
rabl (= 0.8.4)
spree_core (= 2.1.2.beta)
versioncake (~> 1.2.0)
spree_backend (2.1.2.beta)
deface (>= 0.9.0)
jquery-rails (~> 3.0.0)
jquery-ui-rails (~> 4.0.0)
select2-rails (~> 3.4.7)
spree_api (= 2.1.2.beta)
spree_core (= 2.1.2.beta)
spree_cmd (2.1.2.beta)
thor (>= 0.14.6)
spree_core (2.1.2.beta)
activemerchant (= 1.38.1)
acts_as_list (= 0.2.0)
awesome_nested_set (~> 3.0.0.rc.1)
aws-sdk (= 1.11.1)
cancan (~> 1.6.10)
deface (>= 1.0.0.rc3)
ffaker (~> 1.16)
highline (= 1.6.18)
httparty (~> 0.11)
json (>= 1.7.7)
kaminari (~> 0.14.1)
money (>= 5.1.1)
paperclip (~> 3.4.1)
paranoia (~> 2.0)
rails (~> 4.0.0)
ransack (= 1.0.0)
state_machine (= 1.2.0)
stringex (~> 1.5.1)
truncate_html (= 0.9.2)
spree_frontend (2.1.2.beta)
canonical-rails
jquery-rails (~> 3.0.0)
spree_api (= 2.1.2.beta)
spree_core (= 2.1.2.beta)
stringex (~> 1.5.1)
spree_sample (2.1.2.beta)
spree_core (= 2.1.2.beta)
GIT
remote: https://github.com/spree/spree_auth_devise.git
revision: 8cd2b2d8e634dd17dd5e092880ad9165a7299f85
branch: 2-1-stable
specs:
spree_auth_devise (2.1.0)
cancan (~> 1.6.7)
devise (~> 3.0.1)
devise-encryptable (= 0.1.2)
spree_backend (~> 2.1.0)
spree_core (~> 2.1.0)
spree_frontend (~> 2.1.0)
GIT
remote: https://github.com/spree/spree_gateway.git
revision: ef835fb8d47b440b9b20b79f679ad7e0221a971f
branch: 2-1-stable
specs:
spree_gateway (2.1.0.beta)
savon (~> 1.2)
spree_core (~> 2.1)
GEM
remote: https://rubygems.org/
specs:
actionmailer (4.0.0)
actionpack (= 4.0.0)
mail (~> 2.5.3)
actionpack (4.0.0)
activesupport (= 4.0.0)
builder (~> 3.1.0)
erubis (~> 2.7.0)
rack (~> 1.5.2)
rack-test (~> 0.6.2)
active_utils (2.0.1)
activesupport (>= 2.3.11)
i18n
activemerchant (1.38.1)
active_utils (~> 2.0)
activesupport (>= 2.3.14, < 5.0.0)
builder (>= 2.1.2, < 4.0.0)
i18n (~> 0.5)
json (~> 1.7)
money (< 6.0.0)
nokogiri (~> 1.4)
activemodel (4.0.0)
activesupport (= 4.0.0)
builder (~> 3.1.0)
activerecord (4.0.0)
activemodel (= 4.0.0)
activerecord-deprecated_finders (~> 1.0.2)
activesupport (= 4.0.0)
arel (~> 4.0.0)
activerecord-deprecated_finders (1.0.3)
activesupport (4.0.0)
i18n (~> 0.6, >= 0.6.4)
minitest (~> 4.2)
multi_json (~> 1.3)
thread_safe (~> 0.1)
tzinfo (~> 0.3.37)
acts_as_list (0.2.0)
activerecord (>= 3.0)
akami (1.2.0)
gyoku (>= 0.4.0)
nokogiri (>= 1.4.0)
arel (4.0.0)
atomic (1.1.14)
awesome_nested_set (3.0.0.rc.2)
activerecord (~> 4.0.0)
aws-sdk (1.11.1)
json (~> 1.4)
nokogiri (>= 1.4.4)
uuidtools (~> 2.1)
bcrypt-ruby (3.1.2)
better_errors (1.0.1)
coderay (>= 1.0.0)
erubis (>= 2.6.6)
binding_of_caller (0.7.2)
debug_inspector (>= 0.0.1)
builder (3.1.4)
cancan (1.6.10)
canonical-rails (0.0.3)
rails (>= 3.1, < 5.0)
capistrano (2.15.5)
highline
net-scp (>= 1.0.0)
net-sftp (>= 2.0.0)
net-ssh (>= 2.0.14)
net-ssh-gateway (>= 1.1.0)
chunky_png (1.2.8)
climate_control (0.0.3)
activesupport (>= 3.0)
cocaine (0.5.2)
climate_control (>= 0.0.3, < 1.0)
coderay (1.1.0)
coffee-rails (4.0.0)
coffee-script (>= 2.2.0)
railties (>= 4.0.0.beta, < 5.0)
coffee-script (2.2.0)
coffee-script-source
execjs
coffee-script-source (1.6.3)
colorize (0.6.0)
compass (0.12.2)
chunky_png (~> 1.2)
fssm (>= 0.2.7)
sass (~> 3.1)
compass-rails (2.0.alpha.0)
compass (>= 0.12.2, < 0.14)
debug_inspector (0.0.2)
deface (1.0.0.rc4)
colorize (>= 0.5.8)
nokogiri (~> 1.6.0)
rails (>= 3.1)
devise (3.0.3)
bcrypt-ruby (~> 3.0)
orm_adapter (~> 0.1)
railties (>= 3.2.6, < 5)
warden (~> 1.2.3)
devise-encryptable (0.1.2)
devise (>= 2.1.0)
erubis (2.7.0)
execjs (2.0.2)
ffaker (1.19.0)
fssm (0.2.10)
gyoku (0.4.6)
builder (>= 2.1.2)
highline (1.6.18)
hike (1.2.3)
httparty (0.11.0)
multi_json (~> 1.0)
multi_xml (>= 0.5.2)
httpi (1.1.1)
rack
i18n (0.6.5)
jquery-rails (3.0.4)
railties (>= 3.0, < 5.0)
thor (>= 0.14, < 2.0)
jquery-ui-rails (4.0.5)
railties (>= 3.1.0)
json (1.8.0)
kaminari (0.14.1)
actionpack (>= 3.0.0)
activesupport (>= 3.0.0)
libv8 (3.11.8.17)
mail (2.5.4)
mime-types (~> 1.16)
treetop (~> 1.4.8)
mime-types (1.25)
mini_portile (0.5.1)
minitest (4.7.5)
money (5.1.1)
i18n (~> 0.6.0)
multi_json (1.8.0)
multi_xml (0.5.5)
net-scp (1.1.2)
net-ssh (>= 2.6.5)
net-sftp (2.1.2)
net-ssh (>= 2.6.5)
net-ssh (2.7.0)
net-ssh-gateway (1.2.0)
net-ssh (>= 2.6.5)
nokogiri (1.6.0)
mini_portile (~> 0.5.0)
nori (1.1.5)
orm_adapter (0.4.0)
paperclip (3.4.2)
activemodel (>= 3.0.0)
activerecord (>= 3.0.0)
activesupport (>= 3.0.0)
cocaine (~> 0.5.0)
mime-types
paranoia (2.0.0)
activerecord (~> 4.0)
pg (0.17.0)
polyamorous (0.6.4)
activerecord (>= 3.0)
polyglot (0.3.3)
rabl (0.8.4)
activesupport (>= 2.3.14)
rack (1.5.2)
rack-test (0.6.2)
rack (>= 1.0)
rails (4.0.0)
actionmailer (= 4.0.0)
actionpack (= 4.0.0)
activerecord (= 4.0.0)
activesupport (= 4.0.0)
bundler (>= 1.3.0, < 2.0)
railties (= 4.0.0)
sprockets-rails (~> 2.0.0)
rails-footnotes (3.7.9)
rails (>= 3.0.0)
railties (4.0.0)
actionpack (= 4.0.0)
activesupport (= 4.0.0)
rake (>= 0.8.7)
thor (>= 0.18.1, < 2.0)
rake (10.1.0)
ransack (1.0.0)
actionpack (>= 3.0)
activerecord (>= 3.0)
polyamorous (~> 0.6.0)
ref (1.0.5)
rvm-capistrano (1.5.0)
capistrano (>= 2.15.4)
sass (3.2.11)
sass-rails (4.0.0)
railties (>= 4.0.0.beta, < 5.0)
sass (>= 3.1.10)
sprockets-rails (~> 2.0.0)
savon (1.2.0)
akami (~> 1.2.0)
builder (>= 2.1.2)
gyoku (~> 0.4.5)
httpi (~> 1.1.0)
nokogiri (>= 1.4.0)
nori (~> 1.1.0)
wasabi (~> 2.5.0)
select2-rails (3.4.9)
sass-rails
thor (~> 0.14)
sprockets (2.10.0)
hike (~> 1.2)
multi_json (~> 1.0)
rack (~> 1.0)
tilt (~> 1.1, != 1.3.0)
sprockets-rails (2.0.0)
actionpack (>= 3.0)
activesupport (>= 3.0)
sprockets (~> 2.8)
state_machine (1.2.0)
stringex (1.5.1)
therubyracer (0.11.4)
libv8 (~> 3.11.8.12)
ref
thor (0.18.1)
thread_safe (0.1.3)
atomic
tilt (1.4.1)
treetop (1.4.15)
polyglot
polyglot (>= 0.3.1)
truncate_html (0.9.2)
tzinfo (0.3.37)
uglifier (2.2.1)
execjs (>= 0.3.0)
multi_json (~> 1.0, >= 1.0.2)
uuidtools (2.1.4)
versioncake (1.2.0)
actionpack (>= 3.2)
activesupport (>= 3.2)
railties (>= 3.2)
tzinfo
warden (1.2.3)
rack (>= 1.0)
wasabi (2.5.1)
httpi (~> 1.0)
nokogiri (>= 1.4.0)
PLATFORMS
ruby
DEPENDENCIES
better_errors
binding_of_caller
capistrano (~> 2.15.5)
coffee-rails (~> 4.0.0)
compass-rails (~> 2.0.alpha.0)
jquery-rails
pg
rails (= 4.0.0)
rails-footnotes
rvm-capistrano
sass-rails (~> 4.0.0)
spree!
spree_auth_devise!
spree_gateway!
therubyracer
uglifier (>= 1.3.0)
Www::Application.routes.draw do
Spree::Core::Engine.routes.draw do
# Add your extension routes here
get 'products/latest' => 'products#latest', :as => :latest
end
# This line mounts Spree's routes at the root of your application.
# This means, any requests to URLs such as /products, will go to Spree::ProductsController.
# If you would like to change where this engine is mounted, simply change the :at option to something different.
#
# We ask that you don't use the :as option here, as Spree relies on it being the default of "spree"
mount Spree::Core::Engine, :at => '/'
# The priority is based upon order of creation:
# first created -> highest priority.
# Sample of regular route:
# match 'products/:id' => 'catalog#view'
# Keep in mind you can assign values other than :controller and :action
# Sample of named route:
# match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase
# This route can be invoked with purchase_url(:id => product.id)
# Sample resource route (maps HTTP verbs to controller actions automatically):
# resources :products
# Sample resource route with options:
# resources :products do
# member do
# get 'short'
# post 'toggle'
# end
#
# collection do
# get 'sold'
# end
# end
# Sample resource route with sub-resources:
# resources :products do
# resources :comments, :sales
# resource :seller
# end
# Sample resource route with more complex sub-resources
# resources :products do
# resources :comments
# resources :sales do
# get 'recent', :on => :collection
# end
# end
# Sample resource route within a namespace:
# namespace :admin do
# # Directs /admin/products/* to Admin::ProductsController
# # (app/controllers/admin/products_controller.rb)
# resources :products
# end
# You can have the root of your site routed with "root"
# just remember to delete public/index.html.
# root :to => 'welcome#index'
# See how all your routes lay out with "rake routes"
# This is a legacy wild controller route that's not recommended for RESTful applications.
# Note: This route will make all actions in every controller accessible via GET requests.
# match ':controller(/:action(/:id))(.:format)'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment