no implicit conversion of Symbol into Integer

180 views
Skip to first unread message

fugee ohu

unread,
Oct 21, 2019, 6:35:37 PM10/21/19
to Ruby on Rails: Talk
error is caused by line 4

 1 <% @item_properties.each do |ip| %>
 2     <div class="field">
 3       <%= f.label "#{ip.name}".downcase %>
 4       <%= f.text_area [:item][:item_item_property][ip.name.downcase.to_sym] %>
 5     </div>
 6  <% end %>

Rob Jonson

unread,
Oct 22, 2019, 12:45:03 PM10/22/19
to Ruby on Rails: Talk
yup - sounds like you have nailed that one.

As you say; The error here is in trying to implicitly convert a symbol into an integer.

Isn't it great how Rails (ruby) helps you out.
Reply all
Reply to author
Forward
0 new messages