Displaying 1 result from an estimated 1 matches for "disabledness".
2006 Jul 06
4
ERb question: Embedding <%= %> in helper method calls
...#39;'offset'', :maxlength => 2, :disabled => <%= sometest ? ''true'' : ''false''
%>) %>
however, this caused a compile error.
I ended up with an if/else statement to generate my text_field
differently based on the boolean test for "disabledness".
It kind of makes sense to me that doing <%= .... <%= ... %> ...%> might
cause problems.
However, is there an alternative way to achieve this behavior, when you
want to use <%= %> to generate dynamic attributes within the call to a
helper method?
Thanks,
Wes
--
Post...