search for: requestcontroller

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

Did you mean: request_controller
2006 Jan 02
1
Dealing with collections of model objects
...at 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].all? { |a| a = Answer.c...