I'm trying to create a description page for blog post authors. I've created a route:
mount Monologue::Engine, at: '/blog'
#create routes for monologue
Monologue::Engine.routes.draw do
get 'p/:name', to: 'authors#show', as: :author
end
And I've created a controller in app/controllers/monologue:
class Monologue::AuthorsController
def show
puts "in show method"
end
end
I keep getting this error:
undefined method `action' for Monologue::AuthorsController:Class
Long story short: how do I generate a controller within monologue?