[Rails] Re: A big paginate plugin problem

2009-08-11 Thread Kayne
Oh yeah, thank you very much! I see I have a lot of to learn yet. --~--~-~--~~~---~--~~ 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@googlegroups.com To

[Rails] Re: A big paginate plugin problem

2009-08-10 Thread Conrad Taylor
On Mon, Aug 10, 2009 at 11:07 AM, Kayne wrote: > > Hi, > > I've got big problem. I was looking google for some info, but > unfortunately, no solutions help me. > So, my problem is: > > I've got this code: > > @pages, specs = paginate :specs, > :conditions => ["last_name like ?", @initia

[Rails] Re: A big paginate plugin problem

2009-08-10 Thread Frederick Cheung
On Aug 10, 9:50 pm, Kayne wrote: > Ok, I make like this: > >       @pages, specs = Spec.paginate :specs, >         :page => 30, >         :order => 'last_name, first_name', >         :conditions => ["last_name like ?", @initial+'%'] > > And when I want to execute this code. browser gives me bac

[Rails] Re: A big paginate plugin problem

2009-08-10 Thread Kayne
Yeah, you right. But who will pay for it? ;) Ok, I made it. I'm go to... the next problem ;) I don't know.. I hope you can help me. I've got that code: if params[:q] query = params[:q] # Najpierw wyniki spośród użytkowników... @users = User.find_with_ferret(query, :limit =

[Rails] Re: A big paginate plugin problem

2009-08-10 Thread Frederick Cheung
On Aug 10, 10:36 pm, Kayne wrote: > > And here I have not any idea, how use will_paginate. Can you shot me a > solutions? See http://www.pathf.com/blogs/2008/06/how-to-use-will_paginate-with-non-activerecord-collectionarray/ Fred --~--~-~--~~~---~--~~ You recei

[Rails] Re: A big paginate plugin problem

2009-08-10 Thread Kayne
Ok, I make like this: @pages, specs = Spec.paginate :specs, :page => 30, :order => 'last_name, first_name', :conditions => ["last_name like ?", @initial+'%'] And when I want to execute this code. browser gives me back: Couldn't find Spec with ID=1 AND (last_name li

[Rails] Re: A big paginate plugin problem

2009-08-10 Thread Frederick Cheung
On Aug 10, 9:24 pm, Kayne wrote: > Yes, but I didn't understand this... I'm newb. I use now RailsSpace > book. > Will you so cool and translate to me: How can I change my code for > will_paginate, please? It's pretty simple. Your models gain a paginate method that is pretty much exactly the sa

[Rails] Re: A big paginate plugin problem

2009-08-10 Thread Maurício Linhares
RailsSpace is clearly outdated and that old "paginate" method should not be used anymore. You're better served getting a newer book like the latest "Agile web development with Rails". - Maurício Linhares http://codeshooter.wordpress.com/ | http://twitter.com/mauriciojr On Mon, Aug 10, 2009 at

[Rails] Re: A big paginate plugin problem

2009-08-10 Thread Kayne
Yes, but I didn't understand this... I'm newb. I use now RailsSpace book. Will you so cool and translate to me: How can I change my code for will_paginate, please? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Ruby

[Rails] Re: A big paginate plugin problem

2009-08-10 Thread Frederick Cheung
On Aug 10, 7:07 pm, Kayne wrote: > > undefined method `paginate' for # > > And now, I don't know what to do. Any solutions? Have you tried looking at the will_paginate examples at http://gitrdoc.com/mislav/will_paginate/tree/master/ ? Fred --~--~-~--~~~---~--~~ Y