[Rails] dash symbol

2012-09-08 Thread John Merlino
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:

Re: [Rails] dash symbol

2012-09-08 Thread Jordon Bedwell
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,

Re: [Rails] dash symbol

2012-09-08 Thread Иван Бишевац
2012/9/8 John Merlino stoici...@aol.com 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| Look at