Subversion and CVS share a feature called "keyword substitution":
http://svnbook.red-bean.com/nightly/en/svn.advanced.props.special.keywords.html Maybe you could make that work for this somehow? - Jamis On Jun 29, 2008, at 2:02 AM, Anthony Ettinger wrote: > > I want to add the subversion version number (ie: 849) to the title of > my application layout view. > > Is the svn version number possible or accessible from within rails > itself? > > > Something like this is what I am trying: > > title += " -- #{conf.environment} #{code.version}" unless > conf.environment == 'production' > > ...where code.version refers to the current svn version. > > -- > Anthony Ettinger > 408-656-2473 > http://anthony.ettinger.name > > > --~--~---------~--~----~------------~-------~--~----~ To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/capistrano -~----------~----~----~----~------~----~------~--~---
