Something like this. For me at least, it means putting in some sort of non-code driven configuration file(which is kinda where it should be), and it gives you the ability to add additional vars later on. http://gist.github.com/343199
gist has managed to mess with my nice structure and ordering suffice to say they should be in: Rails.root + "/config/applicaition_config.yml Rails.root + "/config/initializers/application_configuration.rb" Hope this helps. -C On 25/03/2010, at 3:46 PM, Joshua Partogi wrote: > HI Cameron, > > Thanks for the suggestion. May I know how this initializer to get the > property from YAML looks like? > > Thanks in advance. > > On Thu, Mar 25, 2010 at 12:04 PM, Cameron Barrie > <camwritesc...@gmail.com> wrote: >> Personally I'd make a YAML file and add an initialiser to put it in a >> constant. Or even just a const in environment.rb >> application_helper won't be available to any of your models, so you'd hose >> yourself if you decided to use it in the future outside of a view context. >> >> -C > > > -- > http://twitter.com/scrum8 > > -- > You received this message because you are subscribed to the Google Groups > "Ruby or Rails Oceania" group. > To post to this group, send email to rails-ocea...@googlegroups.com. > To unsubscribe from this group, send email to > rails-oceania+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/rails-oceania?hl=en. > -- You received this message because you are subscribed to the Google Groups "Ruby or Rails Oceania" group. To post to this group, send email to rails-ocea...@googlegroups.com. To unsubscribe from this group, send email to rails-oceania+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rails-oceania?hl=en.