similar to: having problems to map a existing schema into model classes

Displaying 20 results from an estimated 120 matches similar to: "having problems to map a existing schema into model classes"

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 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 29
0
how do I map this relation?
Ok, these are 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 that you have many states idstatussir
2011 Mar 18
0
trouble in call of "texteval"
  Hi all. I'm having a little trouble with the  function "texteval" (session package). I have used "texteval" in the construction of the function "ExpandData1". "ExpandData1" does not work as expected. However, when I run only the inside code of "ExpandData1" I get the right result. Apparently "texteval" is not working when used
2013 Aug 29
4
Add new calculated column to data frame
Hi, I have a following data set: id event time (in sec) 1 add 1373502892 2 add 1373502972 3 delete 1373502995 4 view 1373503896 5 add 1373503996 ... I'd like to add new column "time on task" which is time elapsed between two events (id2 - id1...). What would be the best approach to do that? Thanks, Srecko [[alternative HTML
2018 Nov 23
0
doveadm dsync-server doesn't use user parameter?
I did a debug output of the dsync-server and found out that it queries the userdb parameter but doesn't use it. --- Debug: Loading modules from directory: /usr/lib/dovecot/modules Debug: Module loaded: /usr/lib/dovecot/modules/lib01_acl_plugin.so Debug: Module loaded: /usr/lib/dovecot/modules/lib02_lazy_expunge_plugin.so Debug: Module loaded: /usr/lib/dovecot/modules/lib10_quota_plugin.so
2018 Nov 23
2
doveadm dsync-server doesn't use user parameter?
Hi, I tried to migrate my dovecot 2.2 to a new server with a other storage configuration and dovecot 2.3. New (and old) Server uses mysql for user information I use the following storage settings mail_home = /storage1/vmail/%{userdb:path} mail_location =
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 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,
2006 May 31
0
web service parameters
Can I return an structure array from a web service in rails? I have this: class CLL_Metadata < ActionWebService::Struct member :key, :string member :type, :string end and I want to do this: class UnifiedLoginApi < ActionWebService::API::Base api_method :GetMetadata, :returns => [ [CLL_ Metadata] ] but when I do:
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 =
2006 Mar 28
0
ajax question about refreshing divs
Ok, I have manny divs in the html, and I have a login form in a inner div, if the user tries to login and the user/password is invalid, only the inner div needs to be refreshed and show the user the error. If the user/password is ok, the main div needs to be refreshed. How could I do this? this is the view in example <div id="MainDiv"> foo <div
2006 Mar 29
0
I can''t get to work css class with link_to_remote function
What am I doing wrong? This is the code <%= link_to_remote "Mi Cuenta", :update => "MainSpace", :url => {:controller => "account", :action => "login"}, :class => "menu_link_superior" %> This is the result <a href="#" onclick="new Ajax.Updater(''MainSpace'',
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 Aug 14
0
return values in SOAP with 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 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 =>