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:
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,
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
3 matches
Mail list logo