Re: [rails-oceania] Where would be the best location to put the version number in Rails apps?

2010-03-24 Thread Joshua Partogi
Thanks Cameron, That looks good. Let me try this. Cheers. On Thu, Mar 25, 2010 at 4:58 PM, Cameron Barrie wrote: > 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

Re: [rails-oceania] Where would be the best location to put the version number in Rails apps?

2010-03-24 Thread Cameron Barrie
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 s

Re: [rails-oceania] Where would be the best location to put the version number in Rails apps?

2010-03-24 Thread Mike Bailey
e- > From: rails-oceania@googlegroups.com [mailto:rails-ocea...@googlegroups.com] > On Behalf Of Joshua Partogi > Sent: Thursday, 25 March 2010 12:00 PM > To: rails-oceania@googlegroups.com > Subject: [rails-oceania] Where would be the best location to put the version > number in Rails apps?

Re: [rails-oceania] Where would be the best location to put the version number in Rails apps?

2010-03-24 Thread Joshua Partogi
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 wrote: > Personally I'd make a YAML file and add an initialiser to put it in a > constant. Or even just a const i

Re: [rails-oceania] Where would be the best location to put the version number in Rails apps?

2010-03-24 Thread Nathan de Vries
On 25/03/2010, at 12:00 PM, Joshua Partogi wrote: > This might be a trivial questions for all of you here. My question is, > where would be the best location to put version number in Rails apps? I like to have a config hash / object available throughout my application for fetching this kind of in

RE: [rails-oceania] Where would be the best location to put the version number in Rails apps?

2010-03-24 Thread Brian Chiha
oshua Partogi Sent: Thursday, 25 March 2010 12:00 PM To: rails-oceania@googlegroups.com Subject: [rails-oceania] Where would be the best location to put the version number in Rails apps? Hi all, This might be a trivial questions for all of you here. My question is, where would be the best locati

Re: [rails-oceania] Where would be the best location to put the version number in Rails apps?

2010-03-24 Thread Cameron Barrie
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 On 25/03/2010, at 12:00

[rails-oceania] Where would be the best location to put the version number in Rails apps?

2010-03-24 Thread Joshua Partogi
Hi all, This might be a trivial questions for all of you here. My question is, where would be the best location to put version number in Rails apps? The version number that I will be using will be retrieved from git tag. I also need to display this in the views template. I was thinking to write i