Yeah so I would like to see the returned array of instance methods of field_helpers of FormBuilder. I try to return it in console:
1.9.3p0 :016 > FormBuilder.field_helpers NoMethodError: undefined method `field_helpers' for FormBuilder:Class Why is it saying undefined method field_helpers when that method exists on the FormBuilder class: class_attribute :field_helpers On Sep 8, 2:49 pm, Jordon Bedwell <envyge...@gmail.com> wrote: > In ruby a minus on an array removes elements. So its removing elements > from the array. > On Sep 8, 2012 1:42 PM, "John Merlino" <stoici...@aol.com> wrote: > > > > > > > > > In the example below, what is the dash doing between the class > > attribute and array: > > > (field_helpers - > > [:label, :check_box, :radio_button, :fields_for, :hidden_field, > > :file_field]).each > > do |selector| > > > -- > > 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 rubyonrails-talk@googlegroups.com. > > To unsubscribe from this group, send email to > > rubyonrails-talk+unsubscr...@googlegroups.com. > > For more options, visithttps://groups.google.com/groups/opt_out. -- 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 rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.