Simple String Concatenation of a Collection Written as a Helper for Rails  
  
    At Railsconf last week I took Greg Pollack's online course Rails Best Practices. The interface is gorgeous and the instructions are excellent. One of the lessons involved taking a partial and moving it into a helper. I was reminded how difficult such a si...  
  
    
      Written by Sean Behan on 06/17/2012
    
  
 
  
    Yield a Block within Rails Helper Method with Multiple Content_tags Using Concat  
  
    To clean up some repetitive html coding in views, pass a block of text to a helper function which will wrap it for you the same way, each and every time. For example, I have a 'help' link which will toggle the display of a block of text if a link is click...  
  
    
      Written by Sean Behan on 06/17/2012