search for: id_before_type_cast

Displaying 4 results from an estimated 4 matches for "id_before_type_cast".

Did you mean: _before_type_cast
2006 May 31
7
How do you create a controller & view to create a list of objects?
...;/><br/> <%= text_field ''bar[]'', ''name'' %></p> <% end %> But I get this error: You have a nil object when you didn''t expect it! You might have expected an instance of ActiveRecord::Base. The error occured while evaluating nil.id_before_type_cast Extracted source (around line #9): 6: 7: <% 5.times do |i| %> 8: <p><label for="bar_<%= i %>_name"/><br/> 9: <%= text_field ''bar[]'', ''name'' %></p> 10: <% end %> 11: 12: <!--[eoform:foo]--> Hmmm......
2006 Apr 21
2
Forms Containing Collections problem
Can anyone tell me why I''m getting the error "The error occured while evaluating nil.id_before_type_cast" for the following view code <% for entry in participant_portfolio.portfolio_entries -%> <%= select "entry[]" , :id, @buyer_profiles, :selected => entry.buyer_profile_id %> <% end -%> This seems to only happen when I use "entry[]" instead of...
2006 Apr 20
0
collection_select returning multiple values
...ection_select("group[]", "id", @groups, "id", "name", {},{:multiple => true}) %> Leading to: You have a nil object when you didn''t expect it! You might have expected an instance of ActiveRecord::Base. The error occured while evaluating nil.id_before_type_cast The @groups is Group.find(:all). Can anyone help? Thanks in advance, R?ben Caba?o -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060420/743abaeb/attachment.html
2007 Mar 30
10
check_box_tag not passing 0 when unchecked?
Code: <%= check_box_tag("person[#{person.id}][is_approved]", 1, true) %> Rendered output: <input checked="checked" id="person[7][is_approved]" name="person[7][is_approved]" value="1" type="checkbox"> Problem: The value of "1" is always passed, even if the box is UNCHECKED. Suggestions? Thanks! -- Posted via