Thursday, 29 August 2013

Write ruby code in string

Write ruby code in string

I have a Rails application where I try to write code into an string:
<% @diagnoses.each do |f| %>
<a href="#" data-dropdown="drop#{f.id}" class=" tiny button dropdown
expand">"#{f.beschreibung}"</a><br>
But somehow the "drop#{f.id}" and the "#{f.beschreibung}" are not written
as a variable. What am I doing wrong and why?

No comments:

Post a Comment