On that same note, I actually did try to set :readonly => false onto "
new_blogs
= Blog.status_name_does_not_equal_all(['live','archived'])" but had no idea
of how to do so. I tried something like
 new_blogs = Blog.status_name_does_not_equal_all(['live','archived'],
:readonly=>false ) but got a syntax error.

Anyway, as per Franz's post, I am going to build a method in the model and
see how that goes whilst minimising the hits on the db.
thank you


On 8 April 2010 07:18, Frederick Cheung <frederick.che...@gmail.com> wrote:

>
>
> On Apr 7, 10:11 pm, Gordon Yeong <anexi...@gmail.com> wrote:
> > yep, Frederick , I read your posting PRIOR to putting this question up. I
> > had also read the API manual and discovered that.
> > As you can see, there's no use of :joins in my script.
>
> It's just behind the scenes - there pretty much has to be, since you
> are fetching instances of Blog but with conditions on the statuses
> table. You're going to have to delve into
> searchlogic (I assume that's what you're using) and figure out how to
> get it to supply readonly => false when it does its find.
>
> Fred

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to