Actions
Bug #11036
closedIn iterlation, '#'(String) is gone
Bug #11036:
In iterlation, '#'(String) is gone
Status:
Rejected
Assignee:
-
Target version:
-
ruby -v:
2.2.1p85 (2015-02-26 revision 49769) [x86_64-darwin14]
Description
field color is hex code. ex) #123123
<% Product.all.each do |product| %>
<% byebug %>
<h4 style="background-color: <%= product.color # first called %>; color: <%= text_color_by_bg(product.color) %>"><%= product.name %></h4>
<ul class="legend">
<% product.options.each do |option| %>
<li style="background-color: <%= option.color %>; color: <%= text_color_by_bg(option.color) %>; border-bottom-color: <%= product.color # second called %>">[<%= option.code %>] <%= option.name %></li>
<% end %>
</ul>
<% end %>
when first called return correct value. #123123
but second called removed #. so return value is 123123
i'm not sure. is from ruby? or rails?
if you have any idea plz tell me.
ENV.
ruby: 2.2.1p85 (2015-02-26 revision 49769) [x86_64-darwin14] ... installed by rbenv
rails: 4.2.1
Updated by hiphapis (Johan Kim) almost 11 years ago
Oops. it's my fault. sorry!
plz delete this issue
Updated by nobu (Nobuyoshi Nakada) almost 11 years ago
- Status changed from Open to Rejected
- Assignee deleted (
matz (Yukihiro Matsumoto))
Actions