Thanks for detailing where you put the file.  That will help others in the
future...

-Owen

On Fri, Jan 14, 2011 at 2:27 PM, Pete <[email protected]> wrote:

> AHA!
>
> Great thanks Bryan,
>
> I replaced the named_scope_extensions.rb with the last one on the link
> and the problem has disappeared!
>
> So thank you very much.
>
> For any novices like myself who may come across this issue, I replaced
> this file in
>
> Ruby187\lib\ruby\gems\1.8\gems\hobo-1.0.2\lib\hobo\scopes
>
> Pete
>
> On Jan 14, 4:26 pm, Bryan Larsen <[email protected]> wrote:
> > In that case it's probably bug #873
> > (https://hobo.lighthouseapp.com/projects/8324/tickets/873), which has a
> > few proposed fixes attached.
> >
> > Bryan
> >
> > On 11-01-14 11:20 AM, Pete wrote:
> >
> >
> >
> > > 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]<hobousers%[email protected]>
> .
> > >>> For more options, visit this group athttp://
> groups.google.com/group/hobousers?hl=en.-Hide quoted text -
> >
> > >> - Show quoted text -- 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]<hobousers%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/hobousers?hl=en.
>
>


-- 


- Owen

Owen Dall, Chief Systems Architect
Barquin International
www.barquin.com
Cell: 410-991-0811

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