On 5 Feb 2011, at 16:43, Oliver Cat <[email protected]> wrote:

> 
> Can anybody explain what's going on with concat? I would expect it
> simply takes two arguments and returns the joined string, but it looks
> as though it's interfering with rails' own output buffer.

How are you calling your helper?
concat appends text to the output buffer, and probably returns that same buffer.
If you are calling it with <%= then you're rails would then append the return 
value of your helper (which is the return value of concat) to the output, in 
addition to the append done by your call to concat

Fred
> 
> tl;dr I basically want to pass a block to a helper and return something
> like:
> <div>
>  <div>
>    <div class="content">CONTENT HERE</div>
>  </div>
> </div>
> 
> 
> Thanks very much for reading.
> 
> -- 
> Posted via http://www.ruby-forum.com/.
> 
> -- 
> 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 [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/rubyonrails-talk?hl=en.
> 

-- 
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to