On Sep 27, 2:01 am, ee_smajors <[EMAIL PROTECTED]> wrote:

> But no... the 'missing tag' does show up, but the two links are
> nowhere to be found.
>
You need to return from the helper the entirety of what you want
rendered. However the return value of your function is either the
missing tag image, or (if sheets_present is true) then just nil. In
the original form this was handled by you using <%= in various points,
but with a helper like this you'll have to handle this yourself eg
output = ""
output << link_to(...)
...
and then return output from your function

>  also is there a clean way to test for sheets present without
> introducing a local variable.

if  series800.setupsheets.any?
  ...
else
  image_tag("/setupsheets/
missing_small.gif", :border=>1,:style=>"margin-right: 3px")
end

Fred
>
> Thanks in advance.
--~--~---------~--~----~------------~-------~--~----~
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