similar to: fastercsv, freezing into vendor/gems

Displaying 20 results from an estimated 10000 matches similar to: "fastercsv, freezing into vendor/gems"

2006 Aug 16
2
installing fastercsv into vendor directory
I am using fastercsv to process input files. I want to install it into my app/vendor directory as a gem (I guess). I used ''rake rails:freeze:gems'' to get rails into the vender dir. But I cannot find any doc on how to do it for fastercsv or any third-party gem. Any help appreciated. -- Posted via http://www.ruby-forum.com/.
2009 Mar 23
6
PDFs prawn gem freeze into the app...
I was having great success with creating PDFs with prawn, I followed Ryan Bates latest screencast. All good. Trouble is when i come to deploy the app on my webhost I ran into trouble. Rails 2.3 app. I did, "sudo rake gem unpack prawn" to freeze it in. I put the app on my webhost but it won''t start, some error saying it can''t find prawn. Any ideas? (summary: works
2008 Jul 18
4
gem question on hosted service
All, This may be a gem question (not rails) but I feel sure someone else on this list has seen this issue go by. I use a hosting service that has ROR available, but I am among the few developers using it. I am developing on a local linux box, and have been very careful to NOT use any extra gems because I might have a problem with my provider. Well ... fastercsv rocks and I wanted to use it. My
2006 Jan 04
2
Using gems from vendor/ ?
Maybe someone here can help me out. I''ve unpacked tzinfo in to my vendor/ directory using "gem unpack tzinfo" and got a vendor/tzinfo-0.1.1 directory as a result. How can I require this gem in my app? I''m trying to use a require line in my environment.rb but no matter what I do Rails seems to look for a locally installed copy in /usr/local/ instead. Any advice?
2009 Aug 05
1
How do I use fastercsv to just read the header row and not the whole file?
How do I use fastercsv to just read the header row and not the whole file? I need to read the header row first and not the whole csv file initially in the web application so I can map the input csv columns to the db columns. Once the mapping is complete, a rake task will than process the whole file. I don’t want to read the whole file to save processing time. How do I just read the header row
2009 Aug 21
12
What to do before launching v1.0?
I’m launching a rails website, the app is written and works, undoubtedly it’ll be an unmitigated disaster when I launch but none the less I thought I’d least attempt to give myself the best chance of success by asking all the gurus here for some advice – pre launch advice if you like. In an ideal world I’d spend days and hours on all of these things and get it absolutely spot on, but as we all
2006 May 17
6
newbie wants to know..FasterCSV or just CSV?
I''m trying to grab a CSV file from a user and let them upload it directly to my database, but doing some minor checks on the data before saving. Which is the easier way to implement this? CSV or FasterCSV? I saw that perhaps there were some issues with FasterCSV and csv files created from Mac versions of Excel. Anyone have any experience with this and can recommend a newbie friendly
2007 Jul 25
3
FasterCSV load file to table
Hello Guys, May be it is simply but any way.... fasterCSV 1.2.0 how to load data from file to table :( I have tried this: file has just one line 1,2,3 data = FCSV.read("C:\\temp_file.csv") table = FCSV.parse(data, :headers => true) puts "data overview" puts data puts "table overview" puts table but got very strange error: undefined method
2009 Nov 10
4
Model spec for file upload with paperclip and fastercsv
I just started my ImportsController and was this was really the way to go: ////////import.rb///////////////// class Import < ActiveRecord::Base has_attached_file :csv validates_attachment_presence :csv after_save :process_csv private def process_csv FasterCSV.foreach( csv.path) do |row| #TODO end end end /////////import_spec.rb///////////////// require
2009 Jun 13
3
How Can I insert another column data into the CSV file when I use FasterCSV?
Hi, All, Suppose I have a CSV file, there is data in it. * Column 1 Column2 Column 3 Column 4 Row1 a b c Row2 a2 b2 c2* You know, the column 4 is no data Now, I would like to insert data to Column 4, after save, the CSV file will be: * Column 1
2009 Jun 17
12
FasterCVS and Rails
Hello all, I''m trying to import some csv data (that has latin characters) using faster csv but I keep getting a MalformedCSVError: "Unclosed quoted field on line 1." "/ruby/lib/ruby/gems/1.8/gems/fastercsv-1.2.3/lib/faster_csv.rb:1592:in `shift''" I''ve tested the same code outside of the Rails application an it works fine. Can anyone help me? Here is
2010 Nov 30
0
Rails 3 & FasterCSV
I''m using FasterCSV to upload some csv files and create some records based off the data in the CSV files. I''m pretty sure the problem is a character encoding issue because the CSV is full of French and German words. If I remove all the accents off the letters, then it uploads fine, otherwise it just throws a FasterCSV::MalformedCSVError. jeremy-woertinks-imac:winovations
2006 Jan 13
3
The Vendor Directory
I''m working with a Development and a Production environment In order to keep things in synch between the two environments, I thought it would be good to "gem unpack" all of my currently installed gems into the vendor/ directory... so when I push things into Production... everything jives. I unpacked about 20 gems into the vendor/ directory.... now everything is broke :) I
2007 Nov 13
0
FasterCSV: ignoring returns within a db field
Hello, my goal is to import data into a MySQL-Database using FasterCSV: Does anyone have an idea how I can force FasterCSV to ignore carriage returns that occur within(!) a database text field and to read until "line feed" = end or row is reached? I tried to use option ":row_sep" but it did not work, it still uses the returns within the text field as end of row, too:
2008 Jan 29
4
Setting up release-1.0.1
Hello, I am unable to get the backgroundrb server to run. Initially I got: /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.1/lib/active_support/dependencies.rb:263:in `load_missing_constant'': uninitialized constant BackgrounDRb::MasterProxy (NameError) from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.1/lib/active_support/dependencies.rb:453:in
2008 May 01
1
Strategy for importing temporary .csv file?
For some reason, I''ve posted this question to this forum 4 times now and it never appears in the daily consolidated email I get daily? I''ve written a routine allowing the client user to declare where their .csv import file resides and then send it to the server to import the many rows into an existing model table, and then throw it away. I''ve imported many graphic files
2011 Jun 01
4
missing these required gems: will_paginate
Hi EveryBody, I hope some one help me. I am new on ROR so might be problem is silly or Obvious. i had developed a project and i had use "WILL_PAGINATE" plugin in my app. It''s working well at localhost. But when deploying on HEROKU, ALL step is going well but when running $heroku rake db:migrate ERROR IS Missing these required gems: will_paginate You''re
2009 May 21
0
FasterCSV won't accept :headers option
When I pass :headers => true to FasterCSV.foreach it complains. Without it it works. Am I doing something wrong? FasterCSV.foreach(file, {:row_sep => :auto, :col_sep => "\t", :quote_char => "~", :return_headers => false, :headers => true}) do |row| -- Posted via http://www.ruby-forum.com/.
2007 Jun 15
1
mongrel cluster issues, plain old mongrel OK
I just created a test rails app, and am having very wierd issues with mongrel cluster. Here''s what I''m doing: rails test sudo chown -R mongrel:mongrel test cd test sudo mongrel_rails \ cluster::configure -e production \ -p 8000 -N 3 -a 127.0.0.1 --user mongrel \ --group mongrel It correctly writes the mongrel_cluster.yml file to the config directory. Now,
2006 May 03
2
How do you use the ''vendor'' directory with 3rd party libraries?
Hi, I''m wondering how to use the ''vendor'' directory in a Rails app. I know that you can put plugins and engines into the ''vendor/plugins'' directory and that svn:externals can be used for that, but I was wondering how & where I put a 3rd party library? My specific case is the pdf-writer code, which I''d rather have inside my app than as a