Move the <code>Color.find(...)</code> segment to the controller, e.g. in a variable such as <code>@first_color</code>.