Displaying 20 results from an estimated 1000 matches similar to: "how do I map this relation?"
2006 Jan 29
0
how to map a relation?
Ok, this is the tables
create table statussir (
idstatussir primary key int auto_numeric,
description varchar(255)
);
create table statussir_next (
idstatussir int not null,
idstatussir_next not null,
foreign key idstatussir references statussir(id_statussir),
foreign key idstatussir_next references
statussir(id_statussir)
);
so, the idea is
2006 Jan 28
0
having problems to map a existing schema in model classes
Hi, I?m doing a project for a company (my first big project in rails).
The company alredy has a database schema, with lots of data, so I don?t
want to change the database schema, but I don?t know how to map some
associations.
Example:
Table: application
Primary Key: idapplication
Table: module
Primary Key: idmodule
Foreign Key: idapplication References aplicattion: idapplication
Table:
2006 Jan 28
0
having problems to map a existing schema into model classes
Hi, I?m doing a project for a company (my first big project in rails).
The company alredy has a database schema, with lots of data, so I don?t
want to change the database schema, but I don?t know how to map some
associations.
Example:
Table: application
Primary Key: idapplication
Table: module
Primary Key: idmodule
Foreign Key: idapplication References aplicattion: idapplication
Table:
2006 Mar 09
6
rmagick and captcha
Has anyone implemented a captcha with ruby on rails and rmagick?
I tried this example:
http://wiki.rubyonrails.com/rails/pages/HowtoSecureFormsWithNoisyImages
but I got an error:
undefined method `size'' for #<NoisyImage:0x34d8070>
Thank you
--------------------------------------------------
Rodrigo Dominguez
?
Iplan Networks ???????????????Datos Personales
2006 Jun 05
4
transactions
Can you give me some links where transactions in rails are explained in
depth? Thank you
PS: I''ve looked in google, but I just couldn''t find good articles, I''m
working with postgresql
Rodrigo Dominguez
Iplan Networks Datos Personales
rdominguez@iplan.com.ar rorra@rorra.com.ar
www.iplan.com.ar <http://www.iplan.com.ar/>
2006 May 24
2
array parameters in web services
I''m working in a web service, actually, I have:
class UnifiedLoginApi < ActionWebService::API::Base
class CLL_Metadata < ActionWebService::Struct
member :key, :string
member :type, :string
member :value, :string
member :webapplication_id, :string
member :user_tenfold_id, :string
member :login_username, :string
2006 Aug 14
1
various returns parameters in action web service
I''m working with ActionWebService, building a SOAP Service.
I realize that I can returns various values, in example:
api_method :foo,
:expects [ { :value1 => :int },
{ :value2 => :int } ],
:returns [ { :return_value_1 => :int},
{ :return_value_2 => :string},
{ :return_value_3 =>
2006 Feb 27
21
what hardware shuld I but to manage 100k of connections per day?
I''m doing a fotolog for a company.
It''s expected to manage about 100k of connections per day and about 1500
concurrents connections.
What hardware should I buy to manage those numbers of connections?
I''m planning to use slackware + lighttpd + fastcgi, but perhaps we will
have to reuse some scripts in php, in that case I would use slackware +
apache + mod_php + fastcgi
2006 Mar 07
0
RE: nuevos requisitos
Ok, barbaro, entonces los nuevos requerimientos ser?an:
1) Que ariel pueda cambiar la configuraci?n de su pantalla.
2) Que ariel pueda acceder al servidor de desarrollo (10.0.9.119)
a los puertos comunes de servicio (ftp, smtp, pop3, imapd, http, https,
samba, svn, csv). Lo que necesito que acceda ahora es al samba, http y
svn, lo dem?s planeo darle un futuro uso.
3) En
2006 Jun 21
3
validation help
I would like to validate a number within a certain range.
To first test that a entry is a valid number i use
validates_numericality_of :my_number, :message =>''sorry, not a number''
to test if the number is within a certain range i use
validates_inclusion of :my_number, :in => min..max, message => ''outside
range!''
If the numericality test fails, I
2006 Feb 27
2
list of countries, states, cp, etc.
I''m doing a registration form.
I saw many registrations forms which asks you for a country and it lists
all the countries of the world, and when you select a country the form
is actualized with all the states or provinces, and when you select a
state/province then the form is actualized with all the cities.
I''m looking to do something like that, is there a free service or pay
2006 Apr 04
1
ActiveRecord object
I have an ActiveRecord class
class User < ActiveRecord::Base
end
and I want to define an attribute, in example "links", links will be an
array.
class User < ActiveRecord::Base
attr :links
end
and now, I want links to be an array, so I do
class User < ActiveRecord::base
attr:links
def initialize(attributes)
super(attributes)
@links =
2005 Oct 05
0
has_and_belongs_to_many on legacy DB
I am working with mapping ActiveRecord onto a legacy database. All is going
well (using set_table_name, set_primary_key, etc), but I can''t get my
many<=>many relationships to work.
My contrived example of the situation:
Student has_and_belongs_to_many Teachers. This is mapped via table
student2teacher where the foreign keys are studentId and teacherId. The
primary key in Student
2006 Jun 23
5
how can i alter the validations error messages.
hello
my name is reynaldo
my question is the next.
i want change the text of the validations error messages generated by
ruby when you don''t wrote properly the data in the form.
--
Posted via http://www.ruby-forum.com/.
2009 Apr 16
0
Magic multi connections with association problem
Dear all
I am using magic multi connections, there is some problem when using
association. How can I dynamic determine the module name (i.e.
A::Request, B::Request) in activerecord association.
Below is my code:
module A
establish_connection :A
end
module B
establish_connection :B
end
# and many module....
class Request < ActiveRecord::Base
set_table_name "request"
2006 Nov 04
0
matching values in arrays
One more question..
I have many collections of clients, in example
clients1 = Client.find(:all, :condtions => "id < 10")
clients2 = Client.find(:all, :conditions => "id > 5")
clients3 = Client.find(:all, :conditions => "id in (3, 5, 7, 9, 11)
So I want to find the common clients between them in a common array, I
mean, clients_array has to
2006 Jun 05
0
question about partial page templates?
Can I call helper functions from the Partial Page Templates?
Because I want to call a function from the ApplicationHelper int a
partial page template, but it says that the function is not defined
Rodrigo Dominguez
Iplan Networks Datos Personales
rdominguez@iplan.com.ar rorra@rorra.com.ar
www.iplan.com.ar <http://www.iplan.com.ar/>
www.rorra.com.ar
2006 Jun 22
0
xml rpc client
I am doing a xml rpc client.
Is there a way to display what I''m sending to the server???
This is the code:
class OrderApi < ActionWebService::API::Base
api_method :IPLWSNroDisponible,
:expects => [{:app_key => :string},
{:number_type => :string},
{:number_sub_type => :string},
2006 May 16
0
tow rails applications in a single virtual host in apache
I have apache as my seb server, and fastcgi.
I have two applications, a typo application (blog.iplan.com.ar) and a
demo application, and I have to merge these two applications so they can
all work in one single hosting.
In example, today, I have
blog.iplan.com.ar (typo)
and I need
<http://www.iplan.com.ar/> www.iplan.com.ar (typo)
blog.iplan.com.ar/demo (demo rails
2006 May 31
0
web services datat types
Ok, this is the model (just two structs)
class CLL_Answer < ActionWebService::Struct
member :server_status, :bool
member :answerDescription, :string
member :answer, :string
member :metadata, CLL_Metadata
end
class CLL_Metadata < ActionWebService::Struct
member :key, :string
member :type, :string
member :value,