Displaying 17 results from an estimated 17 matches similar to: "acts_as_encapsulating / acts_as_inherit"
2005 Dec 21
1
how to sort records??
hey,
ยต
i have these records in my database, in a many-to-many relationship
clients_users
1;66
2;66
3;66
5;66
6;66
7;66
8;66
14;66
15;66
16;66
17;66
18;66
19;66
20;66
21;66
22;66
clients
1;VME Complex Foster
2;VME Res. Canada
3;Twodecode
5;Index
6;Verleye bvba
7;Venus bvba
8;All Building Services nv
14;Vitro-Service sa
15;Vitro-Clean
16;Vecom nv
17;Ultra lean bvba
18;Solar Cleaning Services nv
2006 Jan 31
0
webservice problem (cant make client)
hey, i have made a webservice
http://twodecode.pilot.localhost.be:3000/backend/wsdl
here i can see the wsdl file
i have a method string Authenticate(string twa, string login, string pass)
when i do /invoke i can test it, this all works
backend_api.rb
class BackendApi < ActionWebService::API::Base
api_method :authenticate,
:expects => [{:twa =>:string},{:login
2005 Dec 29
3
Post problem with select lists
hey,
i have this problem
how come i always get -1 for the select list??
rhtml
First, select a client.
<select id="client_id" name="client[id]" onChange="submit();" >
<%= options_for_select(@client_options, @client_id.to_i) %>
</select><%= @client_id %>
controller
if @request.post?
if @request.xml_http_request? #called by ajax,
2006 Jul 02
7
Generic SingleTable inheritance
Hi all,
I would like to discuss a design idea I have in mind with you, in order
to get critical feedback.
ActiveRecord supports single table inheritance(STI) "per se", BUT you
must add all possible instance variables(properties) of all subclasses
to the "base table"(as columns). I would like to circumvent this
restriction.
Say we have a
class AbstractGenericThing <
2005 Dec 20
1
Sending mail error
hey,
i get this message when i want to send a mail
5.3.3 AUTH not available
c:/ruby/lib/ruby/1.8/net/smtp.rb:680:in `check_response''
c:/ruby/lib/ruby/1.8/net/smtp.rb:582:in `auth_login''
c:/ruby/lib/ruby/1.8/net/smtp.rb:581:in `critical''
c:/ruby/lib/ruby/1.8/net/smtp.rb:581:in `auth_login''
c:/ruby/lib/ruby/1.8/net/smtp.rb:571:in `__send__''
2006 May 04
1
Multiple database problem in rails 1.1 ?
Hi ...
We are constructing at rails GUI using two differant databases, and this
seems to work out nicely using a "establish_connection" per model, where
each model enherit directly from ActiveRecord::Base.
But ! I like to use a model where we can inherit from one parent class
that handles the connection exactly as descripted in this document :
2006 Jun 05
2
Class Table Inheritance implementation
I know that Rails uses the Single-Table Inheritance as mentioned in the
wiki (http://wiki.rubyonrails.com/rails/pages/SingleTableInheritance). I
was wondering if there was an easy way of implementing Class Table
Inheritance easily (one table per class) as defined in
http://www.martinfowler.com/eaaCatalog/classTableInheritance.html.
The model that I am used to is Class Table Inheritance, and
2006 Jan 23
1
How to call C# webservices
hey,
i have created some webservices in C# with vb.net and IIS.
i can go to them with http://localhost/Twodecode.Webservices/webservices.asmx
Like:
[Webservice]
AddCity(string zip, string city)
{
...do some stuff
return "SUCCES";
}
How must i call this from ruby??
I save an object, and then call the services.
city = City.new()
if city.save
//call webservice
else
//do
2007 Sep 13
3
t.test() with missing values
Hello!
I am using R 2.5.1 on a Apple Power Book G4 with Mac OS X 10.4.10 and
I am still R beginner.
I try to calculate a t.test() using this code:
TTest75<-t.test(Fem75, Mal75, alternative= "two.sided", paired= TRUE)
This works properly, but I have two variables with a lot of missing
data and therefore get the error message:
TTest66<-t.test(Fem66, Mal66, alternative=
2013 Mar 11
3
custom puppet facts
I have written a custom puppet fact using a ruby script. It is very simple
- it just adds a string to a fact. However I have written a module but it
appears to me that the custom fact has been applied to all my machines
without me specifying any node definitions. When I run a puppet agent
--test --noop, I see the custom fact appear in /var/lib/puppet/lib/facter.
Info: Loading facts in
2012 Sep 30
22
in-module data with hiera
hello,
Till now hiera-puppet was the only way I know that allowed hiera data to
be loaded from inside a module.
The problem with this was that it was still subject to the site specific
hierarchy which means a module author had a pretty hard time to store
his data in a proper way in his module thus perpetuating the use of the
params classes pattern.
Now that Puppet 3 is out and it''s gem
2013 Jan 08
4
puppetdb dashboard
Hello,
I am currently trying to get the puppetdb dashboard and the puppet
dashboard working on the same system. Puppet dashboard is working great but
after "successfully" installing puppetdb following puppet''s opensource
instructions the puppetdb dashboard just doesn''t seem to exist (according
to some sites I should be able to get to it by going to
2004 Feb 17
2
Lattice graphics and strip function
I am looking for examples of code that demonstrates the fine tuning of
the strip panels in lattice graphics and uses plotmath characters. The
code for the graphic is as follows:
xyplot(lagy ~ n | rho1 * rho2, data= data, layout=c(2,6), span = 1,
xlab = "Sample Size", ylab = "Bias in the Coefficient for the Lag of X",
type = "o")
rho1 is a four level factor
2010 Oct 12
4
[0.25.5] Default provider
Hi all,
To start, using puppet 0.25.5 on Debian Lenny with Ruby
1.8.7.72-3lenny1.
I''m giving ruby a shot and am trying to build my own types for several
applications and modify available types found on the ''net for our
usage. However, I keep running into problems with the default provider
it selects. Is there a document somewhere that describes how the
default provider is
2011 Jun 17
7
Questions for puppet 2.6.8 client certificate management
How do I initiate a certificate request without going into non-daemon mode ?
According to "Pro Puppet" book, so far the only way I know that can
trigger a certficate request with puppet master is like this
puppet agent --server=puppetmaster.test.com --no-daemonize --verbose
but doing so will break my intention of automation I need to create a
puppet client package. A control-C is
2012 Dec 07
6
Poll for thoughts on hierifying modules and OS default differences
Hello lovelies,
Our team is deliberating a few different options for the hierification of our modules; and wanted to poll the collective genius before making our decision.
As we all know, there are certain attributes of a package which are, by default, consistent on an OS... say, the name of a package.....
class foobar {
include foobar::params
$package = $foobar::params::package
Package
2013 Feb 13
7
PuppetDB & KahaDB db.data leak
Hi all,
I''ve been looking at a potential problem, as documented here:
http://projects.puppetlabs.com/issues/19241
To do with a leak within the KahaDB persistence layer of ActiveMQ.
Specifically, there are reports of the db.data file growing unbounded:
https://issues.apache.org/jira/browse/AMQ-3956
I''m hoping to find out information from other PuppetDB users to see if
this is