Hello, I just did a test here with installing will_paginate through the gems & plugins page. It worked flawlessly on Heroku once I required it environment.rb. I'd be happy to tar up that app and send it to you as an example, if you think that might help. Just shoot me an email privately.
Best, /Morten On Jun 3, 2008, at 7:48 AM, Aaron wrote: > > At the moment I have taken out the pagination code and just have the > search code working .. you can see it at ngacogdirectory.heroku.com > (its very simple a at the moment) > > On Jun 3, 10:42 am, Aaron <[EMAIL PROTECTED]> wrote: >> Yes I am trying the method used inhttp://railscasts.com/episodes/51 >> >> Here are my models and controllers: >> >> # models/church.rb >> def self.search(search, page) >> paginate :per_page => 5, :page => page, >> :conditions => ['zipcode || city LIKE like ?', "%#{search} >> %"], >> :order => 'name' >> end >> >> # churches_controller.rb >> def index >> @churches = Church.search(params[:search], params[:page]) >> end >> >> I am only trying this in Heroku, and it seems like the gem is >> installed (I installed it using Heroku). it shows up in my vendor/ >> gems/ directory. I have tried requiring it at the bottom of my >> environment.rb file. I am at a loss at this point. Is there any other >> information I could give you that would help? >> >> On Jun 3, 9:19 am, mikong <[EMAIL PROTECTED]> wrote: >> >>> Hi Aaron, >> >>> Any more details you can give us? Have you made it work in your >>> local >>> environment? Or are you only trying this out in Heroku? >> >>> Where are you calling paginate? > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Heroku" 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/heroku?hl=en -~----------~----~----~----~------~----~------~--~---
