nanaya wrote in post #1183937:
Hi

Rails helper is normal ruby method so you can't write it like erb. There
also a few syntax errors.

You'll be better off writing partial instead of helper.
Thank you! I just did that (iterated over an array with the variables
that change), it was definitely less hassle than trying to make the
function work.

--
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 unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/849be919d8a35574c8755842942dce93%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.

Search Discussions

Discussion Posts

Previous

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 3 of 3 | next ›
Discussion Overview
grouprubyonrails-talk @
categoriesrubyonrails
postedJun 11, '16 at 4:51p
activeJun 11, '16 at 6:11p
posts3
users2
websiterubyonrails.org
irc#RubyOnRails

2 users in discussion

Rynn Steinbolt: 2 posts Nanaya: 1 post

People

Translate

site design / logo © 2021 Grokbase