Check a view file to make sure there is no complex options_for_select message call.
Implementation: Check if first argument of options_for_select is an array and contains more than two nodes, then it should be moved into helper.
# File lib/rails_best_practices/checks/move_code_into_helper_check.rb, line 23 def evaluate_start(node) add_error "move code into helper (array_count >= #{@array_count})" if complex_select_options?(node) end
Generated with the Darkfish Rdoc Generator 2.