Displaying 3 results from an estimated 3 matches for "geotag_id".
2005 Dec 01
0
problem with options_from_collection_for_select() need id not name
hey,
i need a select list with a id property and not name, cuz i just ajax with this
list and it checks on id not name
if @request.post? #called by ajax
if @request.xml_http_request? #called by ajax
@geotag_id=params[:geotag_id].nil? ? -2 : params[:geotag_id]
else
@geotag_id=params[:geotag][:id].blank? ? -1:params[:geotag][:id]
end
else
@geotag_id = -1
end
i use this
@geotags = Geotag.find(:all, :conditions =>[''firm_id = ? and client_id = ? '',
firm_id, client_id])
@geotag_op...
2005 Dec 23
1
pagination problem
hey,
i have this problem
in the database i have 32 records
and the sql filtered 4 records
#getting the callerid records depending on the given paramaters and paginate it
@callerid_pages = Paginator.new self, CallerId.count, 10, @params[''page'']
@caller_ids = CallerId.find(:all, :conditions =>["geotags.firm_id = ? ",
@firm_id], :order => " geotags.address1
2005 Sep 28
0
search engine, select the selected option
...</tr>
code controller
@employees = Employee.find_all_by_firm_id(firm_id, :order =>"last_name ASC")
@geotags = Geotag.find_all_by_firm_id(firm_id, :order =>"address1 ASC")
@employee_id = params[:employee][:id].blank? ? '''' : params[:employee][:id]
@geotag_id = params[:geotag][:id].blank? ? '''' : params[:geotag][:id]
@time_entries = TimeEntry.find(:all, :conditions =>["time_entries.firm_id =
? AND employee_id like ? and geotag_id like ?", firm_id,
"%#{@employee_id}%", "%#{@geotag_id}%"], :order =>...