在向视图添加Syntax Error: syntax error, unexpected tLABEL
时,我有一个collection_check_boxes
。
= collection_check_boxes :ethnicity, (collection: ['Asian', 'Black', 'Biracial', 'Indian', 'Hispanic/Latin', 'Middle Eastern', 'Native American', 'Pacific Islander', 'White', 'Other']), prompt: 'Ethnicity'
服务器日志:
syntax error, unexpected tLABEL
..._boxes :ethnicity, (collection: ['Asian', 'Black', 'Biracial...
它指出collection:
是问题所在。