Hi, Can someone tell me why the following isn't setting an instance variable? Perhaps they can't be set/used in helpers? I have a revision_info method in ApplicationHelper that returns the current SVN revision number (used for debugging info in the footer):
module ApplicationHelper def revision_info logger.info("In revision_info(); rev...@rev}") # @rev is always nil if (@rev ||= (capistrano_revision_info || svn_revision_info)).blank? return nil else return 'Revision ' + @rev end end end # capistrano_revision_info returns the revision number from the REVISION file # capistrano_revision_info returns the revision number from `svn info --xml` Thanks in advance for any replies. Cheers, Lee --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---