Displaying 1 result from an estimated 1 matches for "removelinkpo".
Did you mean:
removelinkpos
2006 Jul 06
4
ERb question: Embedding <%= %> in helper method calls
I had a situation where I wanted to use a <%= %> (scriptlet) in my
text_field call to set the "disabled" attribute on the text field, like
so:
<%= text_field(:current_job, ''removeLinkPos'', :value => '''', :id =>
''offset'', :maxlength => 2, :disabled => <%= sometest ? ''true'' : ''false''
%>) %>
however, this caused a compile error.
I ended up with an if/else statement to generate my...