rails how hard is it to add a view?
This is my Error:
Routing Error
uninitialized constant OverviewController
Im new to rails I have NO idea what this means. I am trying to create a view based on the end of the URL being "overview", someone showed me I thought everything with an example "admin" and that works like a charm.
I have rails 1.9 installed (if that makes a difference).
I have my controller "overview_controller.rb" in the controllers directory. The source of it being.
class OverviewController < OverviewController
def index
respond_to do |forma开发者_如何学JAVAt|
format.html
end
end
end
I have in my views directory overview/index.html.erb its source even simpler. "Overview Place Holder" thats it.
in my routes.rb I have match "overview" => "overview#index"
this from my understanding is the same exact way the "admin" example I was given works. So why is it this isn't working for me with the "overview"
You're trying to subclass the class by it's self, change the first line of your controller to this...
class OverviewController < ApplicationController
精彩评论