On Jul 26, 1:55 pm, Max Williams <li...@ruby-forum.com> wrote:
>
> This is so i can use the same pattern of "if the article's not there
> show nothing at all, unless the current user is an admin in which case
> show the 'missing article' message", but with arbitrary html wrapped
> around the actual article (in this case the arbitrary html is the
> quarter and module divs)
>

A helper that yields is what you want. Have a look at the concat &
capture helpers too.

Fred

-- 
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-t...@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.

Reply via email to