Hi All,
I have an extremely frustrating problem and I kind of think this is an
error in rails, but you never know.
I have a hash of objects that I am iterating through in order to display
the needed info. As I am doing that and displaying half a dozen values,
one value is being interrupted by rails as a hash and giving me this
error:
--- !map:HashWithIndifferentAccess comm: "1" comm_percentage: "12"
hotel_name: "111947" rate: "2.00" additional_email_1: "" amenities: cccc
neg_by: Client comm_dollar_amt: "34.00" hod: test rac: xxx billing: "0"
I understand what the messages says, it thinks I am working with a hash,
the thing is that I'm not. The column is clearly defined as a character
varying as is most all of the other columns which display with no
problem. The thing is I can't figure out how to fix this problem. Here
is some of my code:
<% @hotelcontracts.each do |@contract| %>
<div id = "contract_<%= @contract.id %>">
<%= @contract.hotel_name %>
<%= @contract.rate %>
<%= @contract.amen %> ERROR OCCURES HERE
</div>
<% end %>
Has anybody ran into this issue before? And how did you fix it? Thanks,
-S
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.