Displaying 1 result from an estimated 1 matches for "search_homes".
2006 Sep 27
0
To render or redirect
...de 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 :action => ''searc...