I want to know whether the following things are right or wrong, in the
Then to know the right way to do the same, if it is wrong.
I am having a table with the name “cd_details”.
using models, I am accessing data from this.
my model is having the code like this.
model filename : cd_detail.rb
class CdDetail < ActiveRecord::Base
find ( :all,
:select => “id,cd_label”
I am using the able model in a controller like the following
If I run this code, it is saying the following error;
uninitialized constant cd_detail.
I want any one of you to correct this.
Please tell me what is the problem.
Thanks in advance.