search for: item_nam

Displaying 15 results from an estimated 15 matches for "item_nam".

Did you mean: item_name
2009 Jun 12
2
Automate a data load and merge
...# Create labels for each file (ex. June08.csv becomes June08) labels<-gsub('.csv', '', files) # Load all .csv datasets and assign name item<-vector() # preallocate an index of all items in datasets for(i in 1:length(files)){ X<-read.csv(files[i]) item<-union(item, X$Item_Name) assign(labels[i], X) } # What is loaded ls() # [1] "files" "i" "item" "June01" "June02" "June03" "labels" # What does everything look like? str(June03) #'data.frame': 992 obs. of 8 variables: # $...
2006 Jan 19
0
Strange thing with ActiveRecord ??
Hi I am probably missing something, so please help: I have a table called ''zipped_responses'' with an ''item_names'' varchar column. I want to create a comma separated string of ''names''. I have an ''add_item_names'' method which takes a ''name'' and put it at the end of a string with a preceding comma. The model goes like this: class ZippedRespons...
2008 Jan 30
1
Import XML in mysql
Hi, I am using scrubyt for scraping a webpage. The output is xml: Example: <root> <item> <item_name>Canon Vertical Battery Grip BG-E3 For EOS Digital Rebel XT</item_name> <price>$179.00</price> </item> <item> <item_name>Canon Vertical Battery Grip BG-E4 For EOS 5D</item_name> <price>$249.00</price> </item&g...
2006 Mar 10
5
PDF::Writer Simpletable Iteration
...collection shows in the generated PDF. Any ideas? My code follows: def pdf @item = Item.find(:all) _p = PDF::Writer.new _p.select_font ''Times-Roman'' PDF::SimpleTable.new do |tab| tab.title = "Item List" tab.column_order.push(*%w{item_code item_name item_desc item_cost}) tab.columns["item_code"] = PDF::SimpleTable::Column.new("item_code") { |col| col.heading = "Code" } tab.columns["item_name"] = PDF::SimpleTable::Column.new("item_name") { |col| col.heading = "Item" }...
2011 Nov 07
1
RpgSQL row names
...ample below, I'm trying to get rid of the cbind line, yet have the row names of the data frame populate a column. > bentest = matrix(1:4,2,2) > dimnames(bentest) = list(c('ra','rb'),c('ca','cb')) > bentest ca cb ra 1 3 rb 2 4 > bentest = cbind(item_name=rownames(bentest),bentest) > dbWriteTable(con, "r.bentest", bentest) [1] TRUE > dbGetQuery(con, "SELECT * FROM r.bentest") item_name ca cb 1 ra 1 3 2 rb 2 4 Thanks, Ben [[alternative HTML version deleted]]
2007 Aug 23
0
active scaffold polymorphic model
Hi I am trying to use active scaffold to build a polymorphic model . I have a number of models that can be featured and I have a Feature model that belongs_to :item, :polymorphic => true In my config.columns I include :item_type and item_id, I also added :item_name to show the name of the record in the form. In the form, when a type of model is selected I populate the select box for item_name with with the names of the relevant records with the id of each as the value. I set the id of the select box to item_id instead of item_name as I have figured out that...
2006 Apr 28
4
can someone help DRY a noob? thanks...
hi all i''m trying to pass a variable name right round the block and need a hand to ease my aching brain. ##in my sidebar i have <li><%= SidebarItem(''catalogue'') %></li> <li><%= SidebarItem(''provenance'') %></li> <li><%= SidebarItem(''status'') %></li> ##linked to a
2008 Mar 31
2
How can I make a textbox uneditable?
I want to make this textbox indeitable but im not sure how to use ruby to do this can anyone help? my textbox: <%= f.text_field :item_name %> -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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@publ...
2007 Sep 25
7
simple story, extract link
hi, I just started fooling around with story runner, thought I''d start with a dead simple scenario: The first thing I do when describing a site to someone is go to the home page, and begin exploring public pages from there. So, that seems like a good first story to spec out. And I''d really like to extract the actual link from the rendered page (rather than just
2006 Apr 11
5
multiple select_tag
Hello again, I have a table called line_items, with the following fields: id int item_name varchar() qty int conditions text I''ve made my LineItem model, and everything works as such (with simple text_fields).. Now I''d like for the conditions field to be a select_tag() with multiple choice possibility. I''m guessing I need some code to expand/restract the a...
2006 Jun 29
0
Problem getting encrypted submit buttons working with the paypal gem and rails 1.1.2
...oading the correct data from the files. I use them in my form view like so: <%= paypal_setup @invoice_id, Money.us_dollar(@pp_amount_owed), @paypal_to, :business_key => @our_privatekey, :business_cert => @our_pubcert, :business_certid => @our_certid, :return => @pp_return, :item_name => @pp_item_name, :notify_url => url_for (:only_path => false, :action => ''paypal_ipn'') %> I set the certificate ID to the ID showing in my sandbox user''s Encrypted payment settings after uploading the key. Any suggestions about what I''m doin...
2010 Oct 02
0
Ajax observe_field not vorking on Rails
...which should observe my id= ''query'' but it seem like it not doing anything I am using Prototype 1.6.1 and the newest version of rails. The code I wrote is: viewer: <form name="sform" action="" style="display:inline;"> <label for="item_name">Filter on Property No : </label> <%= text_field_tag(:query, params[''query''], :size => 10, :id => ''query'' ) %> </form> <%= image_tag("/images/system/blue_small.gif", :align => "absmiddle",...
2006 Mar 25
4
Rails PayPal and Currencies other than USD
Has anyone been able to make direct API calls to PayPal in currencies other than USD? I get an error message "The currency code submitted is not supported. Check the currency code and try again." I''m using the PayPal plugin for Rails. I can successfully transact in USD, but not AUD (Australian Dollars). Cheers, Dan
2012 Oct 09
10
Auto refresh the drop-down
I have an option in dropdown like "Add new option" written using grouped_collection_select. And when user clicks on the "Add new option". A pop up dialog appears to add a new value. And when I click create it hits the database and adds the value to the db. But It never updates the dropdown list. Suggest me a way to auto refresh only the current dropdown with the new
2006 Feb 07
21
Paypal and Rails
Hello everyone, I am looking for a way to pass off a simple payment to paypal using our own interface. I understand that this requires making full use of Paypal''s API since we won''t be using their shopping cart or anything. I found the article by Pranav Bihari on his site and in the Wiki on using SOAP4R and the paypal WSDL file to interface with paypal web services, but I