Displaying 3 results from an estimated 3 matches for "search_condit".
Did you mean:
search_commit
2006 Sep 27
0
To render or redirect
...I have been using this code for a while and on the whole it works well.
# Display the search page
def search
@breadcrumb_title = ''Search''
if request.get?
@home_search = HomeSearch.new
else request.post?
@home_search = HomeSearch.new(params[:home_search])
@search_conditions = Home.search_homes(params).to_sql
if @home_search.valid?
@homes = Home.find(:all, :conditions=> (@search_conditions))
if @homes.empty?
flash_message ''Your search has returned no results. Please
revise your search critera.''
render :acti...
2006 Mar 28
3
R, RMysql, and MySQL 5 Decimal Type Support
Hi,
Whenever I have a MySQL query that returns a Decimal result to R I get
the following warning in R:
Warning message:
RS-DBI driver warning: (unrecognized MySQL field type 246 in column 1)
I get this for a simple query like "SELECT 2, 2.5" !!
I am using:
R ver 2.1.1
RMySQL ver. 0.5-7
DBI ver. 0.1-10
MySQL Ver 14.12 Distrib 5.0.18.
Please Help!
Jason
2007 Nov 26
8
search not working after upgrade
Izit Izit wrote:
> Correction on my previous post.
>
> The correct way to do it is:
>
> Product.find_by_contents("*",{},:conditions =>search_conditions,:include
> => [:supplier],:order =>"products.id" )
>
> Leave out the :limit=>:all that is put in by default.
Exactly - I tried to make aaf a bit more clever by letting it assume
:limit => :all whenever sql conditions are given, but messed it up
somehow ;-)
I...