similar to: key value pairs working

Displaying 20 results from an estimated 700 matches similar to: "key value pairs working"

2005 Dec 16
4
Adding extra value to an object
Hello friends , I have a clear method here :: def create @invoiceitems = Invoiceitems.new(params[:invoiceitems]) @invoiceitems["invoice_id"] = params[:id] if @invoiceitems.save flash[:notice] = ''Invoiceitems was successfully created.'' redirect_to :action => ''new'',:id => params[:id] else render :action =>
2005 Dec 15
12
Adding multiple invoice items to an invoice on the same form
Hi Friends , Got a unique requirement .I am designing a invoice printing system .So right now I have the NEW page for adding the invoice details to the table .Now I have the requirement of adding Invoice Items In the same form .I have added multiple text boxes to enter the values of the Items using <%= text_field ''invoiceitems[]'', ''item_price''
2005 Dec 16
3
Not able to put into a object variable
hello friends , I was trying to select all the invoice items from the table invoiceitems with a condition.But I am getting a NULL array .Please help me in fixing this :: @oldinvoiceitems = Invoiceitems.find(:all, :conditions => [''invoice_id = :invoiceid'', { :invoiceid => ''params[:id]'' } ] ) Thanx and regards, Naroor Rathish,
2005 Dec 16
2
Is this possible?
Hello Friends, def new @invoiceitems = Invoiceitems.new @oldinvoiceitems = Invoiceitems.find(:all, :conditions =>[''invoice_id = :invoiceid'', { :invoiceid => params[:id] } ] end Error is being shown in the line number with ''end''. This is for initialising a new invoiceItems object and also finding and storing all the invoice items for a
2005 Dec 23
0
adding items to a particular invoice on the same page
Hi, I have been building a invoice generator(in ruby on rails) for the past some days and been stuck on the final page .This page will have fields for entering the invoice details and also I have added a AJAX effect so that fields for invoice items get created dynamically . its all design well but the issue comes when I am trying to save the page .That is adding ivoice details to invoices
2006 Apr 07
2
Installing RoR locally
hi friends, How can i install ruby on rails locally .I mean I dont have internet access in my system and want to install Ror .Please help me out . Thanking you, Naroor Rathish -- Posted via http://www.ruby-forum.com/.
2005 Dec 20
0
Dynamic fields creation and accessing data
Hi friends , I was trying this code and finding some errors.I am trying this to implement dynamic creation of invoice items in invoices using AJAX .Please go thru . I added a partial :: <% @invoiceitem = invoiceitem -%> <%= text_field ''invoiceitem'', ''item_price'', ''index'' => invoiceitem_counter %> <%= text_field
2005 Dec 19
1
Disabling input Text box
Hi friends , I want to disable the text box we use in ruby on rails .How can I add the disabled keyword inside <%= text_field ''invoice'', ''inv_amount'' ,"size"=> 15 %> . I tried <%= text_field ''invoice'', ''inv_amount'' ,"size"=> 15 ,"disabled" %> Thanx and regards, Naroor
2005 Dec 28
2
disabling text_field
Hi , Anyone knows how we can disable <% text_field %> . Thanx, Rathish -- Posted via http://www.ruby-forum.com/.
2005 Dec 15
4
Newbie questions about Rails on Windows
My background is Windows development using Visual Studio and I''m trying to get up to speed with Ruby on Rails, so please excuse these basic questions. I''ve downloaded InstantRails and can run the sample application - so Apache, MySQL, Ruby etc. are working. Where''s the "development environment"? Where do I go to edit files, create models and controllers
2005 Dec 20
12
How to model "Expense Report" in Rails MVC
1st: I am a newbie to Rails & to pure OO. Q: I want to use rails for creating a "master-detail" form. page layout will allow users to type in an "expense report header" and as many "expense report lines" as they need to. I understand how to wrap the final submit action using "transaction" to ensure the inserts to the database happen within the same
2011 Oct 03
4
distance coefficient for amatrix with ngative valus
Hi, I need to run a PCoA (PCO) for a data set wich has both positive and negative values for variables. I  could not find any distancecoefficient other than euclidean distace running for the data set. Are there any other coefficient works with negtive values.Also I cannot get summary out put (the eigen values) for PCO as for PCA.   Thanks. Dilshan [[alternative HTML version deleted]]
2007 Oct 29
2
UI drop down list pulled from database values in activescaffold
as i''m finding it difficult to override the form Ui elements using activescaffold -= i''m looking for a help to build a drop down list in UI (values pulled from databse through SQL query) and so user can select these valus while submitting to database. pls provide any example strictly using activescaffold plugin. thanks selvan-kalaiselvan
2005 Sep 09
2
R-help Digest, Vol 31, Issue 9
Hi: I use lm (linear model) to analyze 47 variables , 8 responses So I use loop to finish it . I want the program to show the results that P-value is less than 0.05. How can I cite the P-valus from lm result ? Ping The code: #using LM to model general fati for (j in 48:52) { for (i in 3:46){ gen.fat<-y_x[,j] gen.fat<-as.numeric(gen.fat) snp_marker<-y_x[,i] x<-colnames(y_x)
2002 Sep 18
2
comparing elements in a vector
How about -- d is a vector as you described it, then define d1 <- d[1:(length(d)-1)] d2 <- d[2:length(d)] d3 <- d1!=0 & d2!=0 & (d1-d2)!=0 I think d3 is the final vector you wanted. I didn't test it, so I'm not sure my logic is right, but I think this is definitely a path you can take... -----Original Message----- From: owner-r-help at stat.math.ethz.ch
2012 Apr 26
2
write to M, using row and columns taken from A and B, with values from C
I want to write to M, using row and columns taken from A and B, with values from C. C is a lot longer than A and B, so only the first 67420 elements of C are used in my loop.So how can I improve it to take then the next 67420 and write it to new file and so on till the 248th 67420. Many thanks library(Matrix) M <- Matrix(-9999, 360, 720) ## creat matrix with 720 columns and 360 ro ws
2011 Apr 12
2
split string into individual valus while reading in R
Dear R experts Sorry for posting: I have text file that I need to read into R (this is out from different program). A portion of data look like: ;example data 1_1 ch1 0.0 HAAAHHAAAHHAAAAAHHAHHAHAHHHAAHHAHAAAAHAAAHHAHHAAHAHHAAAAHAAAHHHAAAHHAHHHAAAHHHHAHHAAHAAAAHAHHHHHAAAHAHHAHHHHAHHHHHHHHHAAHAAHHHAHAAAAAHHHHHHAHHHHHAHHHH 1_2 ch1 0.1
2010 Oct 18
1
boxplot ranked x labels
Dear R users, x-values (EI) = Adw, EG1, LA1, Ad1, LA2, LA3...(14 levels, insect stages) y-valus = antpop within the boxplot function x-values are ordered alphabetically Idea: x-values ranked by list order (insect stage: Egg stage 1 is followed by Larvae 1 and not by Egg stage 2 as it would be in an alphabetically order) Problems with the order(tapply()) function: variable lengths
2007 Jul 05
3
Loop and function
Hi All, I am trying to make a loop for a function and I am using the following codes. "p" and "var" are some matrix obtained before. I would like to apply the function "gpdlow" for i in 1:12 and get the "returnlow" for i in 1:12. But when I ask for "returnlow" there are warnings and it turns out some strange result. for (i in 1:12){ gpdlow
2012 Mar 10
3
How do I do a pretty scatter plot using ggplot2?
Hi all, I am trying hard to do the following and have already spent a few hours in vain: I wanted to do the scatter plot. But given the high dispersion on those dots, I would like to bin the x-axis and then for each bin of the x-axis, plot the quantiles of the y-values of the data points in each bin: 1. Uniform bin size on the x-axis; 2. Equal number of observations in each bin; How to do