`class ApplicationController < ActionController::Base
protect_from_forgery with: :exception
before_action :admin_view, except: [ :admin_view ]
def admin_view
# список страниц для гостя:
# get "articles/:id/beauty", to: 'articles#beauty'
# get "events/:id/beauty", to: 'events#beauty'
@admin_viev_mode = !( current_page?(controller: 'articles', action: 'beauty') || current_page?(controller: 'events', action: 'beauty') )
end`
почему у меня
NoMethodError undefined method current_page?при определении
@admin_viev_mode