search for: bricker88

Displaying 2 results from an estimated 2 matches for "bricker88".

Did you mean: bricker
2012 Sep 30
3
How to escape a forward slash with gsub, also does interpolation work with gsub?
I am trying this: I want to replace all the text in between java comments: /* start */ replace this text here /* end */ I''m trying: text.gsub(//* start */(.*)/* end *//im, replace_with) But i''m getting errors relating to expecting keyword_end. How should I be escaping /* and */ ? Also, does string interpolation work in gsub regex? Say I had variables like: start_tag =
2012 Nov 03
1
Volatile cache keys with Rails and Redis
Does Rails automatically set an EXPIRE attribute on keys when working with Redis, or will an old key sit there forever if it''s never manually cleared out? This is mostly a concern when using ActiveModel''s "cache_key": <%= cache @post do %> The cache-key will be something like views/posts/744-20120613070958 . When the post is updated, and therefore gets a new