similar to: insert select statements from different database

Displaying 20 results from an estimated 11000 matches similar to: "insert select statements from different database"

2006 Jan 12
3
Introspecting Active Record Associations
Hi, I''m looking into write scaffold generators that will, amoung other things, scaffold active record associations (eg. generate select boxes for belongs_to where you can choose a parent object) for quicker prototyping. But... My question is: Is there anyway of finding out what associations exist from examining the lodel classes themselves or indeed any other way of finding out this
2004 Jun 07
2
[LLVMdev] TargetFrameInfo: what's local area offset
The TargetFrameInfo, amoung other things, specifies "local area offset" -- which, as comment say, is: the offset of the local area from the stack pointer on entrance to a function. The question is -- what's local area? Is this the first stack location which can be used by function for allocating its own variables? - Volodya
2006 Mar 07
6
how to add onchange javascript event to select field
I would like to add javascript ''onChange'' event handling for a select field, such as <%= collection_select("job", "client_id" , @clients, "id", "name") %> with onChange="xxx" Anyone know how to make this work? Thank you, Scott -- Posted via http://www.ruby-forum.com/.
2009 Aug 11
5
Dynamic drop-downs in a form_for using AJAX remote_function - Help
Hello - I am fairly new to Ruby on Rails, but feel like I am learning quick. I have what seems to be a fairly unique issue as I cannot find much out there that describes what I''m seeing. Hopefully it''s a very simple fix, and I simply can''t see the forest through all the trees! I am attempting to create 2 related drop-down lists in the same form_for, both using
2004 Aug 07
3
Message waiting
The message waiting options seem to be geared for a normal office environment where there is a one-to-one relationship between a user and a phone/mailbox. I want to have a mailbox that is shared amoung a number of people and want the message waiting light to turn on on multiple phones. I can direct the voice mail to the common mail box. I can direct the individual users to the common mail
2012 Sep 13
3
Creating a link_to from a collection_select
I want to be able to change one attribute of a link_to to be what is the current selection of the collection_select. And needless to say I can''t quite figure it out. app/views/tasks/show.html.erb Who would you like to assign this task to?<br /> <%= link_to ''Myself'', :controller => ''task_queues'', :task_id => @task.id, :action =>
2010 Sep 08
4
Populate combo box from database without repeatness
Hi, I have a column of data with repeated as mentioned below. *column_name* Acer Lenova HP Lenova Acer Acer Lenova I need to populate this column in a combo box without repeated data as mentioned below *combo box* Acer Lenova HP I tried as <%= collection_select(:column_name, TableName.all)%> "table_names" is a table and "column_name" is a column needed to
2006 Jan 25
2
select list generated from table
Have 2 tables - clients & case_managers class Client < ActiveRecord::Base has_one :case_manager end app/views/clients/_form.html contains line... <p><% collection_select("client", "case_manager_id", \ case_manager.find_all, "name", "id") %></p> and this line generates error... undefined local variable or method
2009 Jun 14
5
Partials views and instance variables go nil
Hi everyone! Model: http://pastie.org/511290 Controller: http://pastie.org/511285 View new: http://pastie.org/511286 View _form: http://pastie.org/511284 When I hit submit button there''s an error for usuarios(users in portuguese) instance. It does not seems to save usuarios even though it seems to be posted by the form. Error: http://pastie.org/511292 Need some help here guys plz --
2011 Jul 21
2
fyi: RHEL 5.7 is out
hi fyi, it seems redhat has just pushed RHEL 5.7 out. I see amoung others: kernel-2.6.18-274.el5.x86_64.rpm redhat-release-5Server-5.7.0.3.x86_64.rpm Rainer
2009 Feb 17
3
Dynamic select box
Hi everyone, I have a problem. I want to display a different select box wether the current user is an admin or an user. So I thought I could do this in my view where my form is displayed : <p class="form-input"> <%= f.label(:role_id, ''Role:'') %> <% if (current_user.admin?) then collection_select(:user, :role_id, Role.find(:all, :order =>
2007 Dec 22
3
collection_select validation problem
I''m trying to assign a parent foreign key value using collection_select from my child "new" form. The problem I''m having is if I do not make a selection, I get the following error instead of the Rails validates_presence_of error: You have a nil object when you didn''t expect it! You might have expected an instance of Array. The error occurred while evaluating
2006 Apr 24
4
creating a select box
Hi trying to create a select box in _form.rhtml. I have a table called organisations that contains fileds, 2 being ''id'' and ''name'' these are the fields I need to bring over to the clients _form.rhtml. whats the best way of going about that?? 2 ways i have seen suggested that I cant get to work -@organisations = Organisation.find_all placed this in def new
2006 Aug 21
1
Passing parameters for the server's hostname/ip to the client?
Hey everyone -- Is there a way to refer to the server with the tftpboot images so that when a client is booting diskless, it can mount an nfs directory to that tftp server? That is to say that I have a tftp server on 192.168.0.244. The usr directory is set to be shared amoung the diskless clients via nfs. In the root image, I have /etc/fstab set to something like: blah blah
2009 Jan 23
1
XML package help
Please consider this: <Manifest xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > <!-- eName : name of the element. eValue : value of the element. --> <OutputFilePath>./XYZ</OutputFilePath> <FilesList> <File> <FileTypeId>10</FileTypeId>
2004 Jun 07
0
[LLVMdev] TargetFrameInfo: what's local area offset
On Mon, 7 Jun 2004, Vladimir Prus wrote: > > The TargetFrameInfo, amoung other things, specifies "local area offset" -- > which, as comment say, is: > > the offset of the local area from the stack pointer on entrance to a > function. > > The question is -- what's local area? Is this the first stack location which > can be used by function for
2004 Dec 22
1
errors compiling with svn as of today
Hi. I just checked out the latest icecast from svn and I am now getting errors in format_vorbis.c amoung which are the following: Note: These were detected at link time. format.o(.text+0x9d): In function `format_get_plugin': /usr/src/icecast/src/format.c:69: undefined reference to `format_ogg_get_plugin' format_vorbis.o(.text+0x296): In function `get_buffer_audio':
2009 Sep 24
8
Drop down list ?
Hi Gurus, I''m trying to tackle a drop down list. I have category and item dbs, and they''re wired up with category has_many :items and item belongs_to :category, and an item has a category_id. I have this code in my new/edit.html.erb for item: <%= f.collection_select :category_id, Category.find_main, :id, :header, {}, :multiple => false %> And a pretty drop down list
2005 Dec 19
1
re-selecting a select list on create
I have a select list tht is built from a "collection_select" and I want to reselect the value the user submitted if any part of the form errors. could someone point me in the right direction for doing this? my select looks like this collection_select(:company, :id, @companies, :id, :name) I tried setting the variable @company to param[:company] but that didnt work. thanks --
2009 Jan 08
4
Problem with disable_with
Hi Group, I have a registration.html.erb page with the following JavaScript at the top which I use to validate form fields: <script type="text/javascript"> <!-- function validate(){ if ((document.myForm.email_projectname.value=="")|| (document.myForm.email_projecttype_id.selectedIndex<1)|| (document.myForm.email_region_id.selectedIndex<1)) { alert