search for: table_id

Displaying 20 results from an estimated 22 matches for "table_id".

2006 Nov 07
4
non-"table_id" foreign key
..., a "persons" table and a "friends" table that pairs up two person records. Obviously, I can''t have two fields in the friends table named ''person_id''. So how do I assign a field as a foreign key, that isn''t named in the default format "table_id"? --~--~---------~--~----~------------~-------~--~----~ 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-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this gro...
2009 May 15
0
[PATCH server] Starting of new ovirt QMF API.
...;dutils' +require 'daemons' +require 'logger' + +require 'qmf' +require 'socket' + +include Daemonize + +class VmQmfController + include VmService + + attr_accessor :vm + + def get_login_user + return "ovirtadmin" + end +end + + +class Ovirt + + TABLE_ID = 1 + + def initialize(agent, logger) + + @agent = agent + @logger = logger + + @ovirt_class = Qmf::SchemaObjectClass.new("org.ovirt.ovirt", "Ovirt") + @ovirt_class.add_property(Qmf::SchemaProperty.new("version", Qmf::TYPE_SSTR, :access => Qmf::ACCESS_R...
2007 Nov 21
1
Load Balancing with secondary tables (not main as in the howto)
...quot; or end of line is expected instead of "table" That because the syntax rules of ip: # ip route add help Usage: ip route { add | del | change | append | replace | monitor } ROUTE SELECTOR := [ root PREFIX ] [ match PREFIX ] [ exact PREFIX ] [ table TABLE_ID ] [ proto RTPROTO ] [ type TYPE ] [ scope SCOPE ] ROUTE := NODE_SPEC [ INFO_SPEC ] NODE_SPEC := [ TYPE ] PREFIX [ tos TOS ] [ table TABLE_ID ] [ proto RTPROTO ] [ scope SCOPE ] [ metric METRIC ] INFO_SPEC := NH OPTIONS FLAGS [ nexthop NH ]... NH := [ via...
2010 Feb 25
2
[PATCH] Enhance vms display
...iews/vm/_grid.rhtml index e3fa0e0..fe821e1 100644 --- a/src/app/views/vm/_grid.rhtml +++ b/src/app/views/vm/_grid.rhtml @@ -27,16 +27,17 @@ <% end %> colModel : [ {display: '', name : 'id', width : 20, sortable : false, align: 'left', process: <%= table_id %>checkbox}, - {display: 'Description', name : 'description', width : 180, sortable : true, align: 'left'}, - {display: 'UUID', name : 'uuid', width : 180, sortable : true, align: 'left'}, + {display: 'Name', name : ...
2010 Mar 30
2
setting up has_many
Do I have to manually set a column in a dependent table for the id of the object to which it belongs? I have a collection of objects called photos that are owned by a analysis object. When I try to show an attribute of each of the photo objects I get this error: Mysql::Error: Unknown column ''photos.analysis_id'' in ''where clause'': SELECT * FROM `photos` WHERE
2004 Nov 10
5
command to list ip route tables
In linux one can have several route tables. But how do I list the route tables? (and no ''ip rule list'' is not it) -- damjan | дамјан This is my jabber ID --> damjan@bagra.net.mk <-- not my mail address!!! _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
2009 May 26
1
[PATCH server] fix for Bug 466731 - There is no title for the third column in User Access page and can't be sorted
...:destroy diff --git a/src/app/views/user/_grid.rhtml b/src/app/views/user/_grid.rhtml index 10a10c8..c16c0c6 100644 --- a/src/app/views/user/_grid.rhtml +++ b/src/app/views/user/_grid.rhtml @@ -17,7 +17,7 @@ <%= "{display: '', width : 20, align: 'left', process: #{table_id}checkbox}," if checkboxes %> {display: 'Name', name : 'uid', width : 180, sortable : true, align: 'left'}, {display: 'Role', name : 'roles.name', width : 80, sortable : true, align: 'left'}, - {display: '', wid...
2006 Jan 16
11
Preventing bubble
I''m trying to prevent double ajax requests when I have nested onclick handlers. I have a table with clickable column headings (for sorting by that column). I have onclick handlers on both the <th> and the <a> link so that clicking anywhere on the table heading should work. <th onclick="window.location.href=''http://foo?sort=foo'';">
2010 Aug 26
1
[PATCH] Adding the ability to select a Host to start a VM
...quot; id="start_vm_form" action="<%= url_for :action => 'vm_action' %>"> + <div class="dialog_form"> + <%= error_messages_for 'start_vm' %> + + <%= render :partial => '/host/grid', :locals => { + :table_id => 'start_vm_grid', + :hwpool => @vm.get_hardware_pool, + :exclude_pool => nil, + :exclude_host => nil, + :is_popup => true, + :checkboxes => false, + :on_select => 'start_vm_select', +...
2008 Apr 08
1
Help with primary_key_prefix_type
I put this config in environment.rb # Use table_id instead of id for primary key. config.active_record.primary_key_prefix_type = :table_name_with_underscore I have this migration: class CreateEntities < ActiveRecord::Migration def self.up create_table :entities do |t| t.string :entity_name, :null => false,...
2006 Jul 02
10
Use Rails or PHP?
I''m new to RoR and have used PHP. I want to develop a personal organizer that allows me to add lists (tables) and search them. The ActiveRecord concept seems to allow me to set up something that works with an existing table, but I want the ability to add tables without programming. I know how to do this in PHP and I can put the SQL into queries in RoR, but does ActiveRecord let
2009 Jul 06
0
[PATCH server] UI for accumulated uptime for VMs. (revised2)
...', width : 50, sortable : true, align: 'right'}, + {display: 'Total Run Time', name : 'calc_uptime', width : 50, align: 'right'}, {display: 'Load', name : 'load', width: 180, sortable : false, align: 'left', process: <%= table_id %>_load_widget } ], sortname: "description", diff --git a/src/app/views/vm/show.rhtml b/src/app/views/vm/show.rhtml index 0f70da8..ffe5055 100644 --- a/src/app/views/vm/show.rhtml +++ b/src/app/views/vm/show.rhtml @@ -111,6 +111,7 @@ Provisioning source:<br/&g...
2009 Jul 17
19
I need help saving table data from a rake task
I need to find out how I can create and save a large dataset to a table based on multiple returned arrays from a Rake task. Here is my example using just two arrays (there are 14 in this particular rake task): update_tsos_offense = TsosOffense.new to_team_id, to_ppcs = update_tsos_offense.calculate_tsos(TotalOffense, "ydspgm", "desc") ro_team_id, ro_ppcs =
2006 Aug 02
9
RJS not cross browser compatible?
I have an RJS template that does the following page.insert_html :bottom, "some_id", ''<tr id="some_id"><td></td></tr>'' This works just find in safari and firefox. In IE and Opera it doesn''t work so great. Any ideas? Am I doing something wrong here? -- Posted via http://www.ruby-forum.com/.
2009 Jul 02
1
[PATCH server] UI for accumulated uptime for VMs. (revised)
...', width : 50, sortable : true, align: 'right'}, + {display: 'Total Run Time', name : 'calc_uptime', width : 50, align: 'right'}, {display: 'Load', name : 'load', width: 180, sortable : false, align: 'left', process: <%= table_id %>_load_widget } ], sortname: "description", diff --git a/src/app/views/vm/show.rhtml b/src/app/views/vm/show.rhtml index 0f70da8..ffe5055 100644 --- a/src/app/views/vm/show.rhtml +++ b/src/app/views/vm/show.rhtml @@ -111,6 +111,7 @@ Provisioning source:<br/&g...
2009 Jul 06
2
[PATCH server] UI for accumulated uptime for VMs. (revised3)
...', width : 50, sortable : true, align: 'right'}, + {display: 'Total Run Time', name : 'calc_uptime', width : 50, align: 'right'}, {display: 'Load', name : 'load', width: 180, sortable : false, align: 'left', process: <%= table_id %>_load_widget } ], sortname: "description", diff --git a/src/app/views/vm/show.rhtml b/src/app/views/vm/show.rhtml index 0f70da8..ffe5055 100644 --- a/src/app/views/vm/show.rhtml +++ b/src/app/views/vm/show.rhtml @@ -111,6 +111,7 @@ Provisioning source:<br/&g...
2009 Jun 29
3
[PATCH server] UI for accumulated uptime for VMs.
...', width : 50, sortable : true, align: 'right'}, + {display: 'Total Run Time', name : 'calc_uptime', width : 50, align: 'right'}, {display: 'Load', name : 'load', width: 180, sortable : false, align: 'left', process: <%= table_id %>_load_widget } ], sortname: "description", diff --git a/src/app/views/vm/show.rhtml b/src/app/views/vm/show.rhtml index 0f70da8..ffe5055 100644 --- a/src/app/views/vm/show.rhtml +++ b/src/app/views/vm/show.rhtml @@ -111,6 +111,7 @@ Provisioning source:<br/&g...
2004 Nov 25
12
simple dual Internet connection setup not sending return packets on correct interface
I have a very simple setup exactly as described in the HOWTO section " 4.2. Routing for multiple uplinks/providers". One is cable (eth1: dhcp) and the other is PPPoE (ppp0). I used the following commands to configure the routing once all of my interfaces are up and i have configured SNATing for them: ip route add 66.11.173.0/24 dev ppp0 src 66.11.173.224 table 11 ip route add default
2006 Mar 31
0
comments for joel about rails in software discussion
...w to arrange has_many and belongs_to associations, ain''t it? OK, forget foreign keys. Let''s pretend I''m too amped on Mtn Dew to care about imposing data intergrity at the data level. There''s still no excuse. Because Rails insists I name my foreign key columns table_id if I want to live the good life. When I do so, I shouldn''t have to declar has_many and belongs_to. Perl''s Class::DBI::Loader is smart enough to autodetect relationships, and has been for some time. There''s no reason Rails can''t do this as well. This isn'...
2009 May 15
0
[PATCH server] final cleanup for service layer refactoring.
...f="#">Learn how to manage hosts</a> <%- end -%> <div id="dialog-content-area"> <div class="dialog_body_small"> <div class="panel_header"></div> <%= render :partial => "/host/grid", :locals => { :table_id => "addhosts_grid", :hwpool => nil, - :exclude_pool => @hardware_pool.id, + :exclude_pool => @pool.id, :exclude_host => nil, :checkboxes => true, :on_select => "load_widget_select&quo...