Displaying 11 results from an estimated 11 matches for "parent_typ".
Did you mean:
parent_type
2009 May 15
0
[PATCH server] use service layer for Network controller.
...+ end
- def edit_network_ip_addresses
- @network = Network.find(params[:id])
+ def edit_network_ip_addresses
+ svc_modify(params[:id])
render :layout => 'popup'
- end
+ end
########################## Ip Address related actions
- def ip_addresses_json
- @parent_type = params[:parent_type]
- if @parent_type == 'network'
- ip_addresses = Network.find(params[:id]).ip_addresses
- elsif @parent_type == 'nic'
- ip_addresses = Nic.find(params[:id]).ip_addresses
- elsif @parent_type == 'bonding' and params[:id]
- ip_add...
2010 Jul 16
6
Lost zpool after reboot
...rsgis
??? pool_guid = 0x4406b127a905c5be
??? pool_context = 1
??? pool_failmode = wait
??? vdev_guid = 0xe7dce33be87eeca7
??? vdev_type = disk
??? vdev_path = /dev/dsk/c9t0d0s0
??? vdev_devid = id1,sd at AHITACHI_HDS7225SCSUN250G_0719BN9E3K=VFA100R1DN9E3K/a
??? parent_guid = 0xb89f3c5a72a22939
??? parent_type = mirror
??? prev_state = 0x1
??? __ttl = 0x1
??? __tod = 0x4c40be67 0x272aef9b
Jul 16 2010 15:17:43.657125080 ereport.fs.zfs.vdev.open_failed
nvlist version: 0
??? class = ereport.fs.zfs.vdev.open_failed
??? ena = 0x14c954e68900801
??? detector = (embedded nvlist)
??? nvlist version: 0
??? ??? v...
2009 Sep 23
0
[PATCH server] consolidated network & routing info ui's
...@@ -34,6 +34,16 @@
{:style=>"width:250px;"} %>
</div>
+<br/>
+
+<div class="form_heading clickable closed">Routing Info</div>
+<div class="network_form_section" style="display:none;">
+<% @parent_type = 'network' %>
+<% @ip_address = @network.ip_addresses[0] if @network && @network.ip_addresses.size > 0 %>
+<%= render :partial => 'ip_address_form',
+ :locals => { :parent_type => 'network' } %>
+</div>
+
<script t...
2007 Aug 09
7
Integrating polymorphic models into controllers views? how?
I''m having trouble trying to get this to work.
How the heck do you get a polymorphic controller to work? Especially
integrating it with a view?
Let''s say that we have shows, and episodes, then comments.
A show has many episodes, an episode has many comments.
the route is /shows/1/episodes/1/
Now to add a comment to that episode, how would I do it? Let''s say
that the
2008 Mar 28
0
Problems with URL encoding
Hi
I have a problem when sending parameters from link_to_remote. My link
code:
<%= link_to_remote "Remove",
:url => object_relation_path(
:id => 0,
:object_relation => {
:parent_id => @product.id,
:parent_type => "Product",
:child_id => content_object.id,
:child_type => "ContentObject",
:relation_type_id => 1000
},
:format => :partial,
:response_template => "products/#{@product.product_type}/show/
partials/related_content"),...
2008 May 27
2
HABTM using two columns
...ngs_to_many relationship
with a joining table where TWO columns are used to identify the
relation to TWO alternative tables.
Example:
table 1: mothers [mother_id, name]
table 2: fathers [father_id, name]
table 3: children [child_id, name]
joining table 4: children_parent [child_id, parent_id, parent_type]
''parent type'' can be either ''mother'' or ''father'', and depending on
this, the ''parent_id'' links to an entry in either the father or mother
table.
How do you define this in Rails and how do you query it when showing
the child...
2005 Jul 07
8
Mass mail performance
How does Action Mailer perform when sending out say 3,000 emails? I
know the answer will have a lot to do with the hardware, but in general,
is Action Mailer up to the task of completing an operation like this in
reasonable time?
2005 Jul 31
1
[PATCH] settings parsing section/context return bug
...aster-settings.c
--- src.orig/master/master-settings.c Mon Jan 31 18:37:55 2005
+++ src/master/master-settings.c Sun Jul 31 15:18:18 2005
@@ -825,7 +825,7 @@
if (type == NULL) {
/* section closing */
- if (--ctx->level > 0) {
+ if (ctx->level-- > 0) {
ctx->type = ctx->parent_type;
ctx->protocol = MAIL_PROTOCOL_ANY;
2012 Mar 22
1
why doesn't .where() honor polymorphism?
...esn''t it generate calls for polymorphic
associations? For example:
class MyModel < ActiveRecord::Base
belongs_to :parent, :polymorphic => true
end
I would expect:
MyModel.where(:parent => a)
to be equivalent to:
MyModel.where("my_models.parent_id = ? AND my_models.parent_type = ?",
a.id, a.class.base_class.name)
Is there a philosophical reason it doesn''t make this transformation?
- ff
P.S.: After writing this, I realize it''s not just for polymorphism. I
would expect the NON-polymorphic case to transform:
MyModel....
2010 Feb 24
0
disks in zpool gone at the same time
...0x26b9a51f199f72bf
pool_context = 0
pool_failmode = wait
vdev_guid = 0xaf3ea54be8e5909c
vdev_type = disk
vdev_path = /dev/dsk/c8t2d9s0
vdev_devid = id1,sd at n600a0b800036a8ba000007484adc4dec/a
parent_guid = 0xff4853b09cdcb0bb
parent_type = raidz
zio_err = 6
zio_offset = 0x42000
zio_size = 0x2000
__ttl = 0x1
__tod = 0x4b8412ba 0x32179528
The system configuration:
SunFire X4200, LSI_1068E - 1.18.00.00
StorageTek 2530 with 1TB WD3 SATA drives, not JBOD:
Port Name Chip Vendor/T...
2007 Sep 15
1
v1.1.alpha5 crashes with segmentation fault
...if (*set->protocols == '\0') {
(gdb) bt full
#0 settings_is_active (set=0x0) at master-settings.c:505
No locals.
#1 0x080535d5 in master_settings_read (path=<value optimized out>, nochecks=false, nofixes=false) at master-settings.c:1397
ctx = {type = SETTINGS_TYPE_ROOT, parent_type = SETTINGS_TYPE_ROOT, protocol = MAIL_PROTOCOL_ANY, root = 0x80721d0, server = 0x80721d0,
auth = 0x80727c8, socket = 0x807293c, auth_socket = 0x8072930, auth_passdb = 0x8072878, auth_userdb = 0x80728e0, namespace = 0x0, level = 0}
server = <value optimized out>
prev = (stru...