Я получаю эту ошибку в браузере, когда пытаюсь просмотреть localhost:3000/galleries
Ошибка маршрутизации
undefined method `sub' for nil:NilClass
Мой файл журнала сообщает мне
ActionController::RoutingError (undefined method ‘sub’ for nil:NilClass)`
app/controllers/galleries_controller.rb:1:in `<top (required)>'
Rendered /Users/mikev/.rvm/gems/ruby-1.9.3-head/gems/actionpack-3.1.3/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (0.8ms)
rout.rb
Gallery::Application.routes.draw do
match 'galleries' => 'galleries#index'
end
controllers / galleries_controller.rb:
class GalleriesController < ApplicationController
def index
end
end
views / galleries / index.html.erb пусто
Любыеидея, что это значит?