[Rails] Re: Is it possible with Rails to interact with SVN Server and/or the server's shell?

2013-11-06 Thread Monserrat Foster
Hello all, thanks for replying. Explaining a little further what I need is to set the permissions to determined users from the app, however, the files aren't in the same server as the app and it should be relatively easy to the users to access the files, and the admin wants to be able to see wh

[Rails] Is it possible with Rails to interact with SVN Server and/or the server's shell?

2013-11-06 Thread Monserrat Foster
Hello! I'm fairly new to Ruby and Rails, and currently I don't have any knowledge on interacting with the server's shell or a SVN server, but now I have to develop an app where admins allow/restrict access to files and folders from the app and some sort of version control of the files is need s

[Rails] Re: What it exactly do these do ( RubyXL::Parser.parse and Roo::Excelx.new) when opening a file?

2013-10-21 Thread Monserrat Foster
I'm asking because I'm new to both ruby and rails and my knowledge is not enough to understand source code On Monday, October 21, 2013 11:22:28 AM UTC-4:30, Ruby-Forum.com User wrote: > > Usually the simplest way to learn how a gem works internally is to go > and read the source code. This shoul

[Rails] What it exactly do these do ( RubyXL::Parser.parse and Roo::Excelx.new) when opening a file?

2013-10-21 Thread Monserrat Foster
Do they open a file and load it into memory? I'm asking because it seems to take a long time opening a file but after it opens looping into the variable is REALLY fast, could someone explain me or tell me where can I find an explanaition on how this sort of things work? -- You received this m

Re: [Rails] How can I check if a cell is empty using RubyXL?

2013-10-18 Thread Monserrat Foster
e's a comparison later. On Thursday, October 17, 2013 3:45:52 PM UTC-4:30, Colin Law wrote: > > On 17 October 2013 19:58, Monserrat Foster > > wrote: > > I'm trying to check if a cell is empty because when the parser reaches > an > > empty cell it throws

[Rails] How can I check if a cell is empty using RubyXL?

2013-10-17 Thread Monserrat Foster
I'm trying to check if a cell is empty because when the parser reaches an empty cell it throws NoMethodError (undefined methodvalue' for nil:NilClass)` This is what I was trying to do: 1.upto(inventory[0].sheet_data.size) do |line| @projectCode = inventory[0][line][1].value unless inve

Re: [Rails] What's the best way to approach reading and parse large XLSX files?

2013-10-11 Thread Monserrat Foster
(ActiveRecord: 693.1ms) On Friday, October 11, 2013 4:03:12 PM UTC-4:30, Monserrat Foster wrote: > > This is an everyday, initially maybe a couple people at the same time > uploading and parsing files to generate the new one, but eventually it will > extend to other people, so... > > I us

Re: [Rails] What's the best way to approach reading and parse large XLSX files?

2013-10-11 Thread Monserrat Foster
ogiri? I can't seem to find one On Friday, October 11, 2013 11:12:20 AM UTC-4:30, Walter Lee Davis wrote: > > > On Oct 11, 2013, at 11:30 AM, Monserrat Foster wrote: > > > One 3+ row file and another with just over 200. How much memory > should I need for this no

Re: [Rails] What's the best way to approach reading and parse large XLSX files?

2013-10-11 Thread Monserrat Foster
Hi, the files automatically download in .XLSX formats, I can't change them and I can't force the users to change it in order to make my job easier. Thanks for the suggestion. On Friday, October 11, 2013 11:34:39 AM UTC-4:30, donz wrote: > > On 10/11/2013 11:30 AM, Monser

Re: [Rails] What's the best way to approach reading and parse large XLSX files?

2013-10-11 Thread Monserrat Foster
about 7MB, which is not that much (I think) On Friday, October 11, 2013 8:44:22 AM UTC-4:30, Walter Lee Davis wrote: > > > On Oct 10, 2013, at 4:50 PM, Monserrat Foster wrote: > > > A coworker suggested I should use just basic OOP for this, to create a > class that reads files

Re: [Rails] What's the best way to approach reading and parse large XLSX files?

2013-10-10 Thread Monserrat Foster
done this before. I'll look up nokogiri and SAX On Thursday, October 10, 2013 4:12:33 PM UTC-4:30, Walter Lee Davis wrote: > > On Oct 10, 2013, at 4:36 PM, Monserrat Foster wrote: > > > Hello, I'm developing an app that basically, receives a 10MB or less > XLSX files wi

[Rails] Best way to approach reading and parsing a large XLSX file??

2013-10-10 Thread Monserrat Foster
Hello, I'm developing an app that basically, receives a 10MB or less XLSX files with +3 rows or so, and another XLSX file with about 200rows, I have to read one row of the smallest file, look it up on the largest file and write data from both files to a new one. I just did a test reading a

[Rails] What's the best way to approach reading and parse large XLSX files?

2013-10-10 Thread Monserrat Foster
Hello, I'm developing an app that basically, receives a 10MB or less XLSX files with +3 rows or so, and another XLSX file with about 200rows, I have to read one row of the smallest file, look it up on the largest file and write data from both files to a new one. I just did a test reading a

[Rails] Re: Consuming a web service created with Rails, ETL vs Rest?

2013-10-09 Thread Monserrat Foster
hen consuming a webservice, like redmine API, but without handling databases, is it better to use REST (httparty) or ETL (ActiveWarehouse) and why On Tuesday, October 8, 2013 11:17:20 PM UTC-4:30, Ruby-Forum.com User wrote: > > Monserrat Foster wrote in post #1123885: > > It has do with

Re: [Rails] Consuming a web service created with Rails, ETL vs Rest?

2013-10-08 Thread Monserrat Foster
r" way to do it, I'll take that. On Tuesday, October 8, 2013 9:48:34 AM UTC-4:30, Colin Law wrote: > > On 8 October 2013 14:42, Monserrat Foster > > wrote: > > Hello, I need to consume a web service of an App called RedMine created > with > > Rails, in orde

Re: [Rails] Consuming a web service created with Rails, ETL vs Rest?

2013-10-08 Thread Monserrat Foster
It has do with rails because I'd be using an already existing rails app and probably another app with a few gems to connect to the already defined web service (IMO) On Tuesday, October 8, 2013 9:54:29 AM UTC-4:30, Monserrat Foster wrote: > > The existing app is RedMine, I'd l

[Rails] Consuming a web service created with Rails, ETL vs Rest?

2013-10-08 Thread Monserrat Foster
Hello, I need to consume a web service of an App called RedMine created with Rails, in order to have a sort of "separate" interface (not the same as the app) for one of the departments (that interact with the app) to interact with it and generate some different reports based on the same data. I

[Rails] How do I tell roo to open a paperclip attachment after uploaded to later processing?

2013-10-07 Thread Monserrat Foster
Hello, I'm new to ruby and rails... I was planning to use the spreadsheet gem to open the files but it doesn't support xlsx. I saw this as an example on how to do the same using paperclip @workbook = Spreadsheet.open(MyFile.first.attachment.to_file) I imagine with roo would be something like #

[Rails] Re: is there any way to convert .xlsx to .xls

2013-10-04 Thread Monserrat Foster
according to this, http://roo.rubyforge.org/ roo only access .xls and .xslx files as read only, so, that means I should read it with roo and write it with another gem in .xls format? On Friday, October 4, 2013 11:59:06 AM UTC-4:30, Ruby-Forum.com User wrote: > > Joel Pearson wrote in post #11235

Re: [Rails] is there any way to convert .xlsx to .xls

2013-10-04 Thread Monserrat Foster
I meant, any gems, to use on rails On Friday, October 4, 2013 11:10:33 AM UTC-4:30, Colin Law wrote: > > On 4 October 2013 15:21, Monserrat Foster > > wrote: > > Hello Guys, does anybody know if there's anyway to upload a .xlsx file > and > > then convert it t

[Rails] is there any way to convert .xlsx to .xls

2013-10-04 Thread Monserrat Foster
Hello Guys, does anybody know if there's anyway to upload a .xlsx file and then convert it to .xls file for later processing? i'd like to use spreadsheet to write a new xls file but it doesn't support xlsx and the file is only importable with that format sadly. I saw roo but I don't know if the

[Rails] rails admin: how to set it to use custom controller instead of devise controller?

2013-10-02 Thread Monserrat Foster
I'm trying to make rails_admin use the custom registration controller that I used, instead of the devise one. Meaning when I enter with /users/sign_up it uses the custom controller that has a method that I need, however if I create a user with rails_admin it seems to use the devise controller

[Rails] When overriding the registration controller from devise, is it possible to access the newly created

2013-10-02 Thread Monserrat Foster
I'm trying to create a folder right after a user registers, so I override the create action on the registration controller (devise) but I don't know how to access the newly created user in order to create the folder with it's name to upload files later. So far I've got this: class Registrati

Re: [Rails] Is it possible to include the username in an attachment file_name? Using Paperclip, Rails 3., Devise

2013-10-01 Thread Monserrat Foster
please give me an example? On Tuesday, October 1, 2013 5:32:00 PM UTC-4:30, Monserrat Foster wrote: > > lol. I meant, If i replace self.inventory.instance_write(: > inventory_file_name, "#{:current_user}#{extension}") for > > self.inventory.instance_write(:inventory_file_nam

Re: [Rails] Is it possible to include the username in an attachment file_name? Using Paperclip, Rails 3., Devise

2013-10-01 Thread Monserrat Foster
it seems to be saving as :rails_root/tmp/uploaded_files/inventories/:basename_.:extension ignoring the self.inventory.instance_write(:inventory_file_name, "#{SecureRandom.hex(16)}#{extension}") line On Tuesday, October 1, 2013 5:21:03 PM UTC-4:30, Scott Ribe wrote: > > On

[Rails] Is it possible to include the username in an attachment file_name? Using Paperclip, Rails 3., Devise

2013-10-01 Thread Monserrat Foster
Hello, I'm new to Ruby, Rails, Devise and Paperclip and I'm trying to change a filename when I upload it to include the user's nickname after a _ however, I keep getting filename.extension_(*missing user name*) and this error undefined method `current_user=' for # app/controllers/upload_f

[Rails] TypeError: no implicit conversion of Symbol into Hash when submitting form to upload files

2013-10-01 Thread Monserrat Foster
I'm currently new to Rails and Ruby and I'm trying to learn from my mistakes, this time I'm trying to upload 2 files from a form for later processing, however, after I hit the "Submit" button. I keep getting this error: TypeError in UploadFilesController#create app/controllers/upload_files_c