Hi all,
I have a file in config/initializers that specifies plan types. The
file is:
=====================APP_PLANS = [
{
"id" => 0,
"name" => ''free'',
"Price" => 0,
"Users" => 1,
"Storage" => 0,
"SSL" => true
}, {
"id" => 1,
"name" => ''basic'',
"Price" => 24,
"Users" => 1,
"Storage" => 1,
"SSL" => true
}
]
=====================
In my account signup controller, I call:
@plan_cost = APP_PLANS.[@plan_name]["Price"]
but I get an error:
uninitialized constant ClientsController::APP_PLANS
So what am I doing wrong here? Why can''t I get to the variable I
initialized???
Thanks!
--~--~---------~--~----~------------~-------~--~----~
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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---