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 -~----------~----~----~----~------~----~------~--~---
