Some routing fixing

master
Zequez 2015-07-13 02:47:16 -03:00
parent 48da009fd9
commit a469e7a3fd
2 changed files with 7 additions and 11 deletions

View File

@ -28,16 +28,8 @@ Rails.application.routes.draw do
#
# /tag/:id
scope '/mods', sort: 'alpha', as: :alpha do
resources :mods, path: '/', only: :index
end
resources :categories, path: 'tag', only: [] do
resources :mods, path: '/', only: :index
end
# This one is for the helper
scope '/', sort: 'alpha', as: :alpha do
scope '/', as: :alpha, sort: 'alpha' do
resources :mods, only: :index
resources :categories, path: 'tag', only: [] do
resources :mods, path: '/', only: :index
end
@ -72,6 +64,10 @@ Rails.application.routes.draw do
# end
resources :mods
# This one is for the helper
resources :categories, path: 'tag', only: [] do
resources :mods, path: '/', only: :index
end
get '/how-to-submit' => 'static#how_to_submit', as: :how_to_submit_static
get '/how-to-install' => 'static#how_to_install', as: :how_to_install_static

View File

@ -15,7 +15,7 @@ Category.create! name: 'Transport Belts', icon_class: 'fa fa-indent'
Category.create! name: 'Logistics Network', icon_class: 'fa fa-android'
Category.create! name: 'Oil', icon_class: 'fa fa-flask'
Category.create! name: 'Ores', icon_class: 'fa fa-cube'
Category.create! name: 'Texture Packs', icon_class: 'fa fa-picture-o'
Category.create! name: 'Textures', icon_class: 'fa fa-picture-o'
Category.create! name: 'Containers', icon_class: 'fa fa-archive'
Category.create! name: 'Vehicles', icon_class: 'fa fa-automobile'
Category.create! name: 'Big Mods', icon_class: 'fa fa-gears'