Hi,

Yes sorry typo on my part! :)

was supposed to be is_omlette on both cases! Anyway, sorry not that
that was causing the problem....

Yes, begun happening on current version of Hobo 1.0.2

I tried re-installing ruby (was originally on 1.86, and moved to
1.87), to see if that fixed the issue, but no luck so far, I can't
figure out why it seems to be ignoring the named_scope when sorting.


Also, I am using Mysql in dev environment (if this helps)

Pete

On Jan 14, 3:56 pm, Owen Dall <[email protected]> wrote:
> Pete,
>
> So this started happening with Hobo 1.0.2?
>
> (Sent from my iPad)
> ...............................
> Owen Dall
> Chief Systems Architect
> Barquin International
> Cell: 410.991.0811
>
> On Jan 14, 2011, at 10:36 AM, Pete <[email protected]> wrote:
>
>
>
> > Hi,
>
> > I have very recently discovered an issue with the sorting (order_by)
> > on a Table plus.
>
> > I thought maybe I had changed something in my app, that had broken the
> > sorting to work properly, but this appears to happen in the tutorials
> > I had done too.
>
> > My table plus gathers data using a named scope, so I can restrict by
> > various conditions.
>
> > This works perfectly well when first loading the page, and based on
> > the below named scope, shows (for arguments sake) only the Omelet
> > recipe.
>
> > However, now when I click on the heading to order by count, country,
> > or title, every record is shown from the database, and the named scope
> > restrictions are forgotten. (this never happened before, sorting
> > always worked perfectly)
>
> > --------------------
> > My named scope, followed by index definition for the page.
>
> > named_scope :not_omlette, {:conditions => {:title => "Omelet"}}
>
> > def index
>
> > hobo_index Recipe.is_omlette.apply_scopes(:search =>
> > [params[:search],:title,:body],
> > :order_by => parse_sort_param(:title, :country, :count))
> > end
> > -------------------------
>
> > This is incredibly frustrating, as I cannot see why this should
> > suddenly start happening? Any ideas?
>
> > I am on rails 2.3.8
> > ruby 1.87
>
> > and hobo 1.0.2
>
> > Many thanks
>
> > Pete
>
> > --
> > You received this message because you are subscribed to the Google Groups 
> > "Hobo Users" 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 
> > athttp://groups.google.com/group/hobousers?hl=en.- Hide quoted text -
>
> - Show quoted text -

-- 
You received this message because you are subscribed to the Google Groups "Hobo 
Users" 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/hobousers?hl=en.

Reply via email to