no implicit conversion of Symbol into Integer

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

no implicit conversion of Symbol into Integer

fugee ohu
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 %>

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/81673f7a-f6ff-4c45-952e-91b0a256274a%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: no implicit conversion of Symbol into Integer

Rob Jonson
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.


 4       <%= f.text_area [:item][:item_item_property][ip.name.downcase.to_sym] %>

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/261bc541-662e-49aa-8900-acdb3f012ebd%40googlegroups.com.