elioncho
unread,Jul 28, 2010, 1:45:53 AM7/28/10Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Ruby on Rails: Talk
Hi,
I just upgraded my rails app from rails3.0.0beta4 to rails3.0.0rc and
I'm having problems loading a yaml file. I have a load_config.rb in
the initializers folder which loads a yaml file. The basic loading
code is:
FACEBOOK_CONFIG = YAML.load_file(File.join(Rails.root, 'config',
'facebooker.yml'))[RAILS_ENV]
This stopped working when I moved to rails3rc. FACEBOOK_CONFIG returns
nil.
Also, I have a pluralize method in one of my views, which worked right
before:
<%= pluralize(post.comments.size, 'comment') %>
Now, I'm getting a:
uninitialized constant Post::Comment
Can anyone help me sort these two problems?