From af4055e002f7d9b12ec492e1a9b78a6a6aff5bb3 Mon Sep 17 00:00:00 2001 From: francis Date: Wed, 31 Oct 2007 12:39:58 +0000 Subject: Tests for some controllers. --- app/controllers/user_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/controllers/user_controller.rb') diff --git a/app/controllers/user_controller.rb b/app/controllers/user_controller.rb index a0ac68443..959630166 100644 --- a/app/controllers/user_controller.rb +++ b/app/controllers/user_controller.rb @@ -4,10 +4,10 @@ # Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved. # Email: francis@mysociety.org; WWW: http://www.mysociety.org/ # -# $Id: user_controller.rb,v 1.5 2007-10-30 17:31:31 francis Exp $ +# $Id: user_controller.rb,v 1.6 2007-10-31 12:39:58 francis Exp $ class UserController < ApplicationController - # XXX See helpers/application_helper.rb simplify_url_part fo reverse of expression in SQL below + # XXX See controllers/application.rb simplify_url_part for reverse of expression in SQL below def show @display_users = User.find(:all, :conditions => [ "regexp_replace(replace(lower(name), ' ', '-'), '[^a-z0-9_-]', '', 'g') = ?", params[:simple_name] ], :order => "created_at desc") end -- cgit v1.2.3