Displaying 2 results from an estimated 2 matches for "rails3rc".
Did you mean:
rails3
2010 Jul 28
1
Problem loading YAML files and using pluralize method in Rails3rc
...blems 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?
--...
2010 Jul 27
4
Ruby on Rails 3 RC and files in "lib" directory
In Rails 3b4 my ruby files in the lib directory of my application were
automaticaly loaded/required.
In Rails 3rc1, there are not anymore. Is this normal?
Where is the commit that changed this?
What is the best prefered way to load the files in "lib"?
Thanks for your answers.
Nicolas.
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed