search for: client_pages

Displaying 5 results from an estimated 5 matches for "client_pages".

2006 Jun 08
9
find :order =>
Hi, I have the following find statment @client_pages, @clients = paginate :clients, :per_page => 20, :order => "organisation_id, surname" currently im ordering by organisation_id however I need to order by the field in the organisation table organisations.name how can this be done? Thanks Scott -- Posted via http://www.ruby-for...
2006 Apr 10
0
Rails form error message oddness...
...----------------------- My Controller: ------------------------- class ClientsController < ApplicationController #---- index -------------------------------- def index list render :action => ''list'' end #---- list -------------------------------- def list @client_pages, @clients = paginate(:clients, :order_by => ''name'') end #---- new client -------------------------------- def new #raise params.inspect @client = Client.new(@params[:client]) if request.post? && @client.save flash[''notice''] = '...
2006 Feb 02
12
basic ''find'' question
...%> then a table/row/cell definitions and then list the clients <td><%=h (client.wholename) %> <% end %> and within my clients_controller.rb I have def list2 @clients = Client.find(:first, :conditions => "first_name = ''Elliot''") @client_pages, @clients = paginate :clients, :per_page => 10 end but it lists ALL clients and not just ''Elliot'' but more to the point...I want only those matching the find which I see is passed through by putting <% debug params %> in the list2.rhtml page... !map:HashWithIndiffere...
2005 Dec 22
0
conditions on model
...true text += " and id IN ( " + client.id.to_s first = false else text += ", " + client.id.to_s end end if first == false text += " ) " end end #getting the clients records depending on the given paramaters and paginate it @client_pages, @clients = paginate :client, :conditions => [''firm_id = ? and name like ? and '' + ''address1 like ? and zip like ? and city like ? and country like ? and deleted like ? ''+ text, @firm_id, "%#{@name}%", "%#{@address1}%", "%#{@zip}%&qu...
2005 Dec 19
6
how to do security??
hey, i have maded some security in my website based on http://www.chaconforcongress.com/accounts/login Here they work with users, roles and persmission, and they check it like this, user.has_permission(permission). I have extended this to: users and groups with roles and permissions. With permissions like "view records","edit records","delete records",... def