Displaying 1 result from an estimated 1 matches for "switch_serv".
2006 Jun 08
0
Cleaner way to do this
is there a cleaner way to achieve this? // Is this the correct way?
def show_servers
@server_pages, @switch_servers = paginate :servers, :conditions=>["id in
(select server_id from server_interfaces where
server_interfaces.switch_interface_id in (select id from switch_interfaces
where switch_id = ?) )",params[:id]], :per_page => 20, :order => "name"
render :layout=>false
end...