You could use the params[:page] attribute to switch this off and on, I guess. If params[:page] is missing or equal to 1, then do this, else do that.
Walter On Aug 8, 2014, at 6:17 AM, Melb01 wrote: > Hi, > I am using will_paginate gem to paginate some results and it works very well > but I want to be able to edit the first page and palce some html fragments > not included in the results on top or on the side > how can I do this to have the fragment only in the first page > > > regards > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to rubyonrails-talk+unsubscr...@googlegroups.com. > To post to this group, send email to rubyonrails-talk@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/rubyonrails-talk/6c20e6ee-7957-4ac6-b3d2-36471426c690%40googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-talk@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/8776DAC7-8739-4AE4-9AE8-ECB4B217E11D%40wdstudio.com. For more options, visit https://groups.google.com/d/optout.