Hey The guys at the searchlogic google groups seem to be asleep -.- They didnt'' grant me permission to post yet. But anyways, right now, I followed the searchlogic tutorial found here -http://www.binarylogic.com/2008/09/07/tutorial-pagination-ordering- and-searching-with-searchlogic/ however, in that tutorial, the results of the find displays all my items, before i even search for anything with searchlogic. I want it so that only after a search is made, will i then want the results to get listed. Right now its listing all the results, even though I didn''t search (I know that''s whats supposed to happen, but I want to hide the find results until i search) does anyone know how? Thanks -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Sun, May 16, 2010 at 4:06 PM, David Zhu <dzwestwindsor45-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>wrote:> Hey > > The guys at the searchlogic google groups seem to be asleep -.- > > They didnt'' grant me permission to post yet. > > But anyways, right now, I followed the searchlogic tutorial found here > -http://www.binarylogic.com/2008/09/07/tutorial-pagination-ordering- > and-searching-with-searchlogic/ > > however, in that tutorial, the results of the find displays all my > items, before i even search for anything with searchlogic. > > I want it so that only after a search is made, will i then want the > results to get listed. Right now its listing all the results, even > though I didn''t search > > (I know that''s whats supposed to happen, but I want to hide the find > results until i search) > > does anyone know how? Thanks > >Where''s the exact code? -Conrad> -- > 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
David Zhu wrote:> > The guys at the searchlogic google groups seem to be asleep -.- > > > They didnt'' grant me permission to post yet. > > > But anyways, right now, I followed the searchlogic tutorial found here > > -http://www.binarylogic.com/2008/09/07/tutorial-pagination-ordering- > > and-searching-with-searchlogic/ > > > however, in that tutorial, the results of the find displays all my > > items, before i even search for anything with searchlogic. > > > I want it so that only after a search is made, will i then want the > > results to get listed. Right now its listing all the results, even > > though I didn''t search > > > (I know that''s whats supposed to happen, but I want to hide the find > > results until i search) > > > does anyone know how? Thanks >Conrad wrote:> Where''s the exact code? >here- this is the view <% if @users_count > 0 %> <%= @users_count %> users found <table border="1" cellpadding="5"> <tr> <th><%= order_by_link :id %></th> <th><%= order_by_link :user_group => :name %></th> <th><%= order_by_link :first_name %></th> <th><%= order_by_link :last_name %></th> <th><%= order_by_link [:email, :first_name] %></th> </tr> <% @users.each do |user| %> <tr> <td><%= user.id %></td> <td><%= user.user_group ? user.user_group.name : "-" %></td> <td><%= user.first_name %></td> <td><%= user.last_name %></td> <td><%= user.email %></td> </tr> <% end %> </table> So how do I make it so that the do loop that flips through users don''t get displayed until I search something? -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On May 17, 3:20 pm, David Zhu <dzwestwindso...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> David Zhu wrote: > > > The guys at the searchlogic google groups seem to be asleep -.- > > > > They didnt'' grant me permission to post yet. > > > > But anyways, right now, I followed the searchlogic tutorial found here > > > -http://www.binarylogic.com/2008/09/07/tutorial-pagination-ordering- > > > and-searching-with-searchlogic/ > > > > however, in that tutorial, the results of the find displays all my > > > items, before i even search for anything with searchlogic. > > > > I want it so that only after a search is made, will i then want the > > > results to get listed. Right now its listing all the results, even > > > though I didn''t search > > > > (I know that''s whats supposed to happen, but I want to hide the find > > > results until i search) > > > > does anyone know how? Thanks > > Conrad wrote: > > Where''s the exact code? > > here- this is the view > > <% if @users_count > 0 %> > <%= @users_count %> users found > > <table border="1" cellpadding="5"> > <tr> > <th><%= order_by_link :id %></th> > <th><%= order_by_link :user_group => :name %></th> > <th><%= order_by_link :first_name %></th> > <th><%= order_by_link :last_name %></th> > <th><%= order_by_link [:email, :first_name] %></th> > </tr> > <% @users.each do |user| %> > <tr> > <td><%= user.id %></td> > <td><%= user.user_group ? user.user_group.name : "-" > %></td> > <td><%= user.first_name %></td> > <td><%= user.last_name %></td> > <td><%= user.email %></td> > </tr> > <% end %> > </table> > > So how do I make it so that the do loop that flips through users don''t > get displayed until I search something? >No one knows?> -- > 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. > For more options, visit this group athttp://groups.google.com/group/rubyonrails-talk?hl=en.-- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.