Anyone know what the syntax is for using variables in identifiers? i.e.:
for a in @issue.articles
f.select "article#{a.page}", options_from_collection_for_select(@articles, 'id', 'name', @issue.article2)
end
Where the 2 in @issue.article2 could be an iterator in a for loop.
Cheers!
You mean dynamic method names. Here’s how:
See Variables in ruby method names.