What’s wrong there? And how do I get rid of the comma at the end of the
enumeration in an elegant way? I know there’s join(…), but this as
long as I only get those strange
#ShowType:0x22cd910#ShowType:0x22cd8d4 and so on this doesn’t help
me much.
What’s wrong there? And how do I get rid of the comma at the end of the
enumeration in an elegant way? I know there’s join(…), but this as
long as I only get those strange
#ShowType:0x22cd910#ShowType:0x22cd8d4 and so on this doesn’t help
me much.
Thanks for help,
Joshua
Perhaps you have to convert to string inside the block?
<%= profile.show_types.each { |s| s.name.to_s + “,” } %>
What’s wrong there? And how do I get rid of the comma at the end of the
enumeration in an elegant way? I know there’s join(…), but this as
long as I only get those strange
#ShowType:0x22cd910#ShowType:0x22cd8d4 and so on this doesn’t help
me much.
Try <%= profile.show_types.join(‘,’) %>
I think he wants to harvest the name attributes, like:
Oops! For some reason I didn’t the second half of the email Looks
like he
did what you suggested below, though his follow-up email arrived before
his
original email…
BTW, I have Ruby for Rails and it’s great! Thanks!