search for: person_controller

Displaying 3 results from an estimated 3 matches for "person_controller".

2007 Jun 05
6
Help with spec controller
...#39;m getting is: Spec::Mocks::MockExpectationError in ''PersonController should tell the Person model to create a new person on POST to create'' Mock ''person'' received unexpected message :save with (no args) /home/gramos/src/rails/dental/config/../app/controllers/person_controller.rb:26:in `create'' ./spec/controllers/person_controller_spec.rb I can''t find what I am doing wrong. I would appreciate any help. thanks in advance. -- Gast?n Ramos "I always thought Smalltalk would beat Java, I just didn''t know it would be called ''Ruby&...
2007 Dec 28
11
LIKE clause in rails
Hello, I am trying to achieve a search functionality in the following manner i have an table called people which has first_name,last_name,etc... After the user form to search people is submitted i get the params hash as params[:persons]={"first_name"=> "%John%","last_name"=>"%Stevens%"} NOTE : I have changed the params hash to include the %. Now
2005 Feb 24
8
web services with ActionWebService
...ff correct. My current code for the app/apis/person_api.rb file is like this: class PersonAPI < ActionWebService::API::Base inflect_names false api_method :friends, :returns => [[:string]], :expects => [ {:mboxhash => :string} ] end And then in my app/controllers/person_controller.rb file I have: class PersonController < ApplicationController layout "xhtml11common", :except => :foaf def show @person = Person.find @params["id"] if @session["currentperson"] != nil @currentperson = Person.find @session[&q...