| 37 | | @l2_interfaces_short = L2Interface.find(:all, :conditions => [ "ifdescr_short LIKE :description", { :description => params[:for] } ]) |
|---|
| 38 | | @l2_interfaces_long = L2Interface.find(:all, :conditions => [ "ifdescr_long LIKE :description", { :description => params[:for] } ]) |
|---|
| 39 | | @l2_interfaces_address = L2Interface.find(:all, :conditions => [ "address LIKE :address", { :address => params[:for] } ]) |
|---|
| | 37 | @l2_interfaces_short = L2Interface.find(:all, :conditions => [ "ifdescr_short LIKE :description", { :description => "%#params[:for]}%" } ]) |
|---|
| | 38 | @l2_interfaces_long = L2Interface.find(:all, :conditions => [ "ifdescr_long LIKE :description", { :description => "%#{params[:for]}%" } ]) |
|---|
| | 39 | @l2_interfaces_address = L2Interface.find(:all, :conditions => [ "address LIKE :address", { :address => "%#{params[:for]}%" } ]) |
|---|