Displaying 12 results from an estimated 12 matches for "current_id".
Did you mean:
current_rid
2006 Mar 16
4
calling an actionview method from inside a model
Hi,
I would like my model instance to produce it''s own list of options for
a form select. This is from a product model that has_many variations
def alts_for_select(current_id)
the_map = variations.map{|v| [v.name, v.id]}
options_for_select(the_map, current_id)
end
the model cannot see the options_for_select method
I tried to use
ActionView::Helpers::FormOptionsHelper::options_for_select(the_map, current_id)
but this didn''t work.
Any ideas?
Thanks,
Pet...
2006 May 15
8
set_table_name and self.table_name
I have some legacy tables that I used set_table_name on, I''m attempting
to write a method that will get key value from a sequence table and then
update it and return a value. I''m hoping to put this in the base
ActiveRecord method so I would like to reference the table name with
self.table_name or something...
class Contacts < ActiveRecord::Base
set_table_name
2006 Oct 22
3
Keeping DRY - I like a simple life!
...class Foo < ActiveRecord::Base
include Versionable # Some methods to handle my versioned objects
has_many :versions, :class_name => "FooVersion", :foreign_key =>
"parent_id"
belongs_to :curr, :class_name => "FooVersion", :foreign_key =>
"current_id"
belongs_to :unapproved, :class_name => "FooVersion", :foreign_key =>
"unapproved_id"
end
I''d like to make use of this again with my Bar and BarVersion class
without copying and pasting. Any thoughs on how I could do this?
Thanks,
Richard
--
Posted via...
2004 Apr 14
2
Problem creating new domain in unstable
Hi,
I just had a try using the xeno-unstable. When I used the xc_dom_create.py to create a new domain I got the followings:
==============================================
Traceback (most recent call last):
File "/usr/bin/xc_dom_create.py", line 332, in ?
(current_id, current_port) = make_domain()
File "/usr/bin/xc_dom_create.py", line 238, in make_domain
xend_response = xenctl.utils.xend_control_message(cmsg)
File "/usr/lib/python2.2/site-packages/xenctl/utils.py", line 198, in
xend_control_message
ctl.sendto(message, ''...
2004 May 20
1
xc_dom_create.py cpu flag
I pulled unstable yesterday and noticed xc_dom_create.py does not have
a default value for cpu, so python complains
Traceback (most recent call last):
File "/usr/bin/xc_dom_create.py", line 408, in ?
(current_id, current_port) = make_domain()
File "/usr/bin/xc_dom_create.py", line 234, in make_domain
id = xc.domain_create( mem_kb=mem_size*1024, name=domain_name, cpu=cpu )
NameError: global name ''cpu'' is not defined
Using the -C flag to set cpu gets a usage message, bec...
2010 Jan 28
2
dynamic drop downs for product search
Hey Everyone,
I''m about to embark on having a search function for the products on my
app via dynamic dropdowns. A dropdown for make would only leave
AVAILABLE models of that make. selecting year would only leave
available makes from that year etc etc.
Any suggestions or good read ups ?
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails:
2013 Jan 08
13
[PATCH 00/12] VMCI for Linux upstreaming
* * *
This series of VMCI linux upstreaming patches include latest udpate from
VMware to address Greg's and all other's code review comments.
Summary of changes:
- Rebase our linux kernel tree from v3.5 to v3.7.
- Fix all checkpatch warnings and errors. Fix some checkpatch with -strict
errors.
This addresses Greg's comment: On 15 Nov 2012
2013 Jan 08
13
[PATCH 00/12] VMCI for Linux upstreaming
* * *
This series of VMCI linux upstreaming patches include latest udpate from
VMware to address Greg's and all other's code review comments.
Summary of changes:
- Rebase our linux kernel tree from v3.5 to v3.7.
- Fix all checkpatch warnings and errors. Fix some checkpatch with -strict
errors.
This addresses Greg's comment: On 15 Nov 2012
2012 Oct 16
11
[PATCH 00/10] VMCI for Linux upstreaming
* * *
In an effort to improve the out-of-the-box experience with Linux
kernels for VMware users, VMware is working on readying the Virtual
Machine Communication Interface (vmw_vmci) and VMCI Sockets
(vmw_vsock) kernel modules for inclusion in the Linux kernel. The
purpose of this post is to acquire feedback on the vmw_vmci kernel
module. The vmw_vsock kernel module will be presented in a later
2012 Oct 16
11
[PATCH 00/10] VMCI for Linux upstreaming
* * *
In an effort to improve the out-of-the-box experience with Linux
kernels for VMware users, VMware is working on readying the Virtual
Machine Communication Interface (vmw_vmci) and VMCI Sockets
(vmw_vsock) kernel modules for inclusion in the Linux kernel. The
purpose of this post is to acquire feedback on the vmw_vmci kernel
module. The vmw_vsock kernel module will be presented in a later
2012 Oct 30
29
[PATCH 00/12] VMCI for Linux upstreaming
* * *
This series of VMCI linux upstreaming patches include latest udpate from
VMware.
-split guest, host and core driver code into different files
-use EXPORT_SYMBOLS_GPL
-remove vmci_device_get and vmci_device_release APIs
-simplify the event deliver mechanism
-driver ioctl code cleanup
-sparse clean
* * *
In an effort to improve the out-of-the-box experience with
2012 Oct 30
29
[PATCH 00/12] VMCI for Linux upstreaming
* * *
This series of VMCI linux upstreaming patches include latest udpate from
VMware.
-split guest, host and core driver code into different files
-use EXPORT_SYMBOLS_GPL
-remove vmci_device_get and vmci_device_release APIs
-simplify the event deliver mechanism
-driver ioctl code cleanup
-sparse clean
* * *
In an effort to improve the out-of-the-box experience with