Tam.. I meant html source of generated page with the form...
tom
Tam Kbe wrote:
> Thanks Tom: Here is the Ruby code
>
> ---------------------
> def search
> @page = params[:page]
> @page ||= 1;
> @search_phrase = params[:search_phrase]
> @search_phrase ||= ''
>
> @users = User.search(@search_phrase,
> :sphinx => {:limit => $NUM_USER_SEARCH_RSLTS, :page =>
> @page,:weights => [100,60,20,20]},
> :per_page => $NUM_USER_SEARCH_RSLTS, :page => @page)
> @userColleagues =
> User.find_by_id(session[:user_id]).colleagues(:all, :conditions =>
> ["networks.mutual = ?" , true])
> @is_network_owner = false
> @is_network_owner = true if params[:id].to_i==session[:user_id]
>
> render :partial => 'user_search_results', :locals => {:users =>
> @users, :@userColleagues => @userColleagues, :@is_network_owner =>
> @is_network_owner}
>
> end
> ----------------
> Thanks,
> Tam
--
===============================================================================
Tomas Meinlschmidt, MS {MCT, MCP+I, MCSE, AER}, NetApp Filer/NetCache
www.meinlschmidt.com www.maxwellrender.cz www.lightgems.cz
===============================================================================
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---