Displaying 20 results from an estimated 1000 matches similar to: "acts_as_tree"
2005 Oct 12
2
Help with act_as_nested_set
Hi, I''m trying to get act_as_nested_set working, and I''m puzzled.
I googled the following
http://codefetch.com/cache?url=http://media.pragprog.com/titles/rails/code/r
ails-code.tgz
<http://codefetch.com/cache?url=http://media.pragprog.com/titles/rails/code/
rails-code.tgz&path=rails-code/ar/acts_as_nested_set.rb&lang=ruby&qy=ruby>
2006 Jan 20
2
HP NetServer LC2000r and LH6000r install woes
hello folks!
i've got four HP NetServers, two LC2000r and two LH6000r. the CentOS
4.2 ServerCD can't see hard drives on any of them.
each machine has a HP NetRAID controller; the LC2000rs have a
NetRAID-1Si and the LH6000rs have an Integrated NetRAID. each
controller has three 9GB drives, two mirrored and one hotspare.
each machine boots ok (the LC2000rs need "linux
2008 Oct 31
4
config moved?
Hi Folks
#1
Has ~/.wine/config
(http://www.codeweavers.com/support/docs/wine-user/config-file) moved?
Under ~/.wine/ I have no "config", but I do have the 3 files:
system.reg; user.reg; userdef.reg. Is one of these now the "config" file?
And
#2
I installed Windows native ole32.dll into ~/.wine/drive_c/windows (as
per the ole32.dll accompanying text file - well,
2006 Feb 18
0
indexed date_select
Hi All,
I am wondering if it is possible to have date_select fields that are
indexed for updating of multiple rows.
Here is my code:
<% @book.awards.each do |@award| %>
<tr>
<td><%= select("award[]", "category", [ "Fiction", "Non-Fiction",
"Poetry", "First-Boak", "Translation" ],
{ :include_blank
2009 May 12
3
Fink package for xapian-bindings (Python)
hello folks!
on this page (http://xapian.org/download) you have links to the Fink
packages for xapian-core and omega; you may be interested to know that
i've packaged the Xapian Python bindings. i'm working on similar
packages for the Ruby and PHP bindings, and i'd be happy to inform you
once they've been pushed out to the mirrors.
-steve
--
If this were played upon a
2015 Oct 13
3
RFC: Introducing an LLVM Community Code of Conduct
> Also, the problem with enumerating all the inacceptable behaviour is
> that the text tends to become TL;DR. Which means permanent discomfort: I
> never fully read the rules, so I'm never fully sure that I'm not
> violating the CoC, nor am I sure whether others violate it.
>
> In terms of size and complexity, the proposed CoC is shorter than the
> typical bulletin
2009 Apr 03
1
"Invalid argument (22)" & "Operation not supported (95)" ???
Hi Folks
I've gone back over the list and the only reference I've found to
"Invalid argument (22)" is here:
http://lists.samba.org/archive/rsync/2006-May/015478.html
That seems a different context of character set mismatches.
The common parts to my errors are:
rsync: rsync_xal_set: lsetxattr("...","security.selinux") failed:
Invalid argument (22)
And:
2013 Mar 21
0
Problems parsing page encoded in Shift-JIS
I''m posting this question to both mailing lists as I''m not sure whether it''s a Mechanize problem or a Nokogiri problem.
Using Nokogiri and Mechanize to load and parse a web page encoded with Shift-JIS. I have an HTML construct like:
<head>
<meta http-equiv="content-type" content="text/html; charset=Shift_JIS">
</head>
<body>
2006 Jul 10
11
Category Number Results returned
I am looking to have a number of categories populated from my results of
a search. For example, searching on "sport" would display all results
for sport. I want to also have a number of categories to refine the
documents down. So by clicking on the "Fishing" category or the
"Shooting" category, I would only see the results on sport around that
category.
Now for
2007 May 02
3
acts_as_tree related question
hi,
I''ve a normal Category model implemented with acts_as_tree (name,
parent_id) that has_many :products (name, category_id).
What I''m asking for is a method to fetch every product that belongs
fall into a particular category and its children, eg: if I''m asking
for a root node (/category/show/1) I need to display every product
that have category_id = 1 AND every product
2009 Mar 29
2
ssh & rsync equivalence?
Hello Folks
Can anyone help with why I can use ssh like so:
[root@morgansoldmachine ~]# ssh -t rsync@192.168.1.40 sudo ssh -i
/home/rsync/.ssh/id_dsa root@192.168.1.100
Last login: Tue Mar 24
21:32:51 2009 from morgansmachine.lan
[root@morgansoldmachine ~]# logout
Connection to 192.168.1.100 closed.
Connection to 192.168.1.40 closed.
[root@morgansoldmachine ~]#
But, when I use the same
2006 Apr 15
8
Inheritance in Rails - I need some help
I''ve got a model, "category" and another model "subcategory." Each
subcategory belongs_to a category, and a category has_many
subcategories.
What I need to do is set it up so that I can search Category and
Subcategory with one .find call. So:
Category.find(:all, <etc)
will find categories and subcategories.
Now, I believe this can be done by making
2006 Mar 30
5
Heeelp - no idea what''s going wrong.
I''m working on a simple CMS. The main data type are "listings" a listing
habtm (has_and_belongs_to_many) categories and subcategories.
Subcategories belong_to categories. Subcategories are basically the same
as categories, but they are treated differently in a few situations.
The problem is, I can''t seem to write the view/controller/model code
that allows me to
2004 Nov 25
4
kernel configuration and tc commands for traffic shaping
Hi,
I wished to shape the traffic that cross my ppp0 interface
so I asked around and google''d a bit and I headed in the
LARTC HOWTO.
As stated in the early in the text, as the title implies,
that is an "Advanced" HOWTO and while by no means rocket
science, some prior knowledge is assumed.
Unfortunately I found myself lost very soon and I''m
writing here in hope
2006 Mar 29
0
Many-to-many relationship with multiple models?
I have a simple CMS I''m creating, and the primary model is the
"listing". A listing habtm (has_and_belongs_to_many) categories (up to
two) - allowing the listing to print its categories and a category to
print its listings. I also need subcategories, which are different from
categories in two ways: a listing can have as many subcategories (from
it''s two categories)
2006 Apr 11
2
Finding items from two models - then merging them
I have a model, listings. Listings habtm categories and subcategories,
which are seperate models.
What I want to do is search categories for certain items, like so:
@categories = Category.find(:all, :conditions => ["name LIKE ?",
"#%{:search_string}%"
and subcategories for the same:
@subcategories = Subcategory.find(:all, :conditions => ["name LIKE ?",
2009 Sep 22
4
rspec-rails and rack middleware
It doesn''t seem like my controller specs are calling my middleware on
requests. Has anyone figured out a good way to test middlware with rspec?
I''m thinking something like
rails'' rails/actionpack/test/controller/session/mem_cache_store_test.rb but
with rspec... any thoughts?
Thanks!
Best,
Aaron
-------------- next part --------------
An HTML attachment was scrubbed...
2012 Aug 08
2
Running spamc during LMTP delivery
Hello list,
we are using dovecot-lmtp for delivery to virtual users, and vmm[1]
to manage them.
1. http://vmm.localdomain.org/
One nice feature of vmm is that every virtual user has their own
UID/GID on the UNIX filesystem. There is no passwd entry, so no
shell login, but each user effectively has a home directory and can
run commands in isolation and with lowered privileges.
This requires
2006 Mar 06
0
How to use: INNER JOINS & IN
Hi
I am not clear about how to use INNER JOINS and IN(...) sub query in rails. Is there a good tutorial which helps newbies step by step ?
I have a
model Library
model Authors
model Fictions
The relation maybe explained as:
Library has many fiction books
authors have many fictions
The authors table has information like full name, period of life, country etc.
In that case, I want to
2006 May 12
2
Has many through join table issues
I''m trying to wrap my caffeine soaked brain around has_many :through
following along at:
http://rails.techno-weenie.net/tip/2005/12/23/teaching_your_blog_model_new_tricks_with_has_many_through
I think my models are a little more complex than what fits this
narrative.
I have a directory of members, each member can belong to multiple
categories.
The category table references itself