Hi,
Referencing the URL http://localhost:3000/cvs netted me the response:
“uninitialized constant CvsController::Cvs”
with the trace information:
K:/_Utilities/ruby186-26_rc2/ruby/lib/ruby/gems/1.8/gems/
activesupport-2.2.0/lib/active_support/dependencies.rb:102:in
`const_missing'
app/controllers/cvs_controller.rb:5:in `index'
Lines 4-5 of the controller are:
def index
@cvs = Cvs.find(:all)
The cause seems clearly related to item 3 below. What should I do to
correct the situation.
By way of background.
1. I created a Rails 2.0.2 Payroll application a few days ago.
2. I more recently upgraded Rails to 2.2, which required a couple
tweaks:
a. The statement I used was:
a. Removed the “config.action_view.cache_template_extensions”
reference
b. Set RAILS_GEM_VERSION = '2.2.0'
3. Created new model, Cvs ... where there was one anomaly:
a. The statement I used was:
ruby script/generate scaffold Cvs filename:string created:date
modified:date imported:date
b. The scaffold reported “create app/models/cv.rb” instead of
cvs.rb
c. I tried changing the name manually, but that only introduced
more error msgs
4. “raked” the migrations
5. Validated the table creation by running SQLite3
6. Ran into the problem reported at the beginning of this post.
What are my options for extricating myself from this situation?
Thanks in advance,
Richard
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---