Displaying 2 results from an estimated 2 matches for "ghlyl0gzfsect2ftz".
2010 Mar 31
5
undefined method `each' for "":String
I implemented creating an object within another object according to
this Railscast:
http://railscasts.com/episodes/74-complex-forms-part-2
but I''m getting this error after I submit. Any ideas?
undefined method `each'' for "":String
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this
2010 Mar 30
0
How to deal with array of checkbox values in Ruby 1.9.1?
In Ruby 1.9.1 strings are no longer enumerable and string.each is
undefined. This causes a problem when parsing values for an array of
generated checkboxes since the field value, when submitted, becomes an
array of strings. For example:
<% for map in Map.find(:all) %>
<%= check_box_tag "listing[map_ids][]", map.id, @listing.maps.include?
(map) %>
<%= map.title %>
<%