Project

General

Profile

Actions

Bug #11036

closed

In iterlation, '#'(String) is gone

Added by hiphapis (Johan Kim) about 9 years ago. Updated about 9 years ago.

Status:
Rejected
Assignee:
-
Target version:
-
ruby -v:
2.2.1p85 (2015-02-26 revision 49769) [x86_64-darwin14]
[ruby-core:<unknown>]

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

Actions #1

Updated by hiphapis (Johan Kim) about 9 years ago

Oops. it's my fault. sorry!
plz delete this issue

Actions #2

Updated by nobu (Nobuyoshi Nakada) about 9 years ago

  • Status changed from Open to Rejected
  • Assignee deleted (matz (Yukihiro Matsumoto))
Actions

Also available in: Atom PDF

Like0
Like0Like0