hidden-fields attr_protected checking does not work
Reported by Betelgeuse | September 28th, 2010 @ 12:24 PM | in Hobo 1.1
[58, 67] in /usr/lib/ruby/gems/1.8/gems/hobo-1.0.1/taglibs/rapid_forms.dryml
58 hiddens.map do |field|
59 val = this.send(field)
60 param_name = param_name_for(form_field_path + [field])
61 debugger
62 [param_name, val] unless val.nil? ||
=> 63 field.to_sym.in?(this.class.attr_protected) ||
64 (this.new_record? && val == this.class.column(field).default)
65 end.compact
66 end
67 skip = comma_split skip
/usr/lib/ruby/gems/1.8/gems/hobo-1.0.1/taglibs/rapid_forms.dryml:63
field.to_sym.in?(this.class.attr_protected) ||
(rdb:1) p field
"image_file_name"
(rdb:1) p field.to_sym
:image_file_name
(rdb:1) p this.class.attr_protected
#<Set: {"image_file_name", "image_updated_at"}>
The code is trying to find a symbol in a Set of Strings.
Comments and changes to this ticket
-
Bryan Larsen November 15th, 2010 @ 09:29 PM
- State changed from new to open
- Milestone set to Hobo 1.1
- Milestone order changed from 197898 to 0
What Ruby are you using? If I remember correctly, this is one of those things that changed 1.8 => 1.9?
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป