Thank you for your reply, much appreciated. I'm afraid I am too new at
this, though. Where exactly does that go in active scaffold? Did I even
have the correct file?
On Wednesday, August 20, 2014 6:52:43 AM UTC-4, Sergio Cambra wrote:
>
> config.list.per_page=1
>
>
>
> Will limit result to one per page, also for list without searching.
>
>
>
> If you want only one result, only for search, no pagination, use
> custom_finder_options, check @filtered to return options only when search
> is active.
>
>
>
> def customer_finder_options
>
> {:limit => 1} if @filtered
>
> end
>
>
>
> El Martes, 19 de agosto de 2014 15:42:39 macinrack escribió:
>
> > I am looking for some sort of documentation that will describe to me how
> to
>
> > limit my search results to just 1. I am very much a Ruby newbie. I need
> to
>
> > know what file to open and what to put there. I came up with
>
> > *lib/active_scaffold/extensions/action_view_rendering.rb *but this is
> over
>
> > my head, if I even have the right file.
>
> >
>
> > Otherwise I have been able to do what I want with AS.
>
> >
>
> > Thanks!
>
>
>
--
You received this message because you are subscribed to the Google Groups
"ActiveScaffold : Ruby on Rails Gem" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/activescaffold.
For more options, visit https://groups.google.com/d/optout.