def search
  @users = User.find(:all, 
             :conditions => ["login like ?", "#{params[:q]}%"])
  respond_to do |format|
    format.html  { render :action => "index" }
    format.xml   { render :xml    => @users.to_xml }
  end
end