search for: request_control

Displaying 1 result from an estimated 1 matches for "request_control".

2006 Jan 02
1
Dealing with collections of model objects
...n the application needs to verify that all text fields are not blank before saving. It sounds simple and I feel that I''m missing something obvious because I can''t figure out a simple way of accomplishing this task. Here''s a more concrete example: ------- app/controllers/request_controller.rb ------- class RequestController < ApplicationController def make_request # session[:resource] has been defined elsewhere.... @answers = session[:resource].prepare_answers end def complete_request answers = Array.new all_good = params[:answers].a...