[Rails] Spreadsheet -avoid reading and writing from file how?

2009-04-15 Thread Sijo Kg
Hi I am using http://spreadsheet.rubyforge.org/ in my application..Usage like book = Spreadsheet::Workbook.new book.write "#{RAILS_ROOT}/public/uploads/excel-file.xls" render :file => "#{RAILS_ROOT}/public/uploads/excel-file.xls" headers['Content-Type'] = "application/vnd.ms-excel" he

[Rails] Re: Passenger caching in development mode, wtf?

2009-04-15 Thread Frederick Cheung
On Apr 15, 5:58 am, Petr Janda wrote: > This makes no difference. The problem is with mongrel is that I need the > devel applications to be accessible even when im not developing, ie. > client review. And id need to make a start up script in case i reboot > the server to make all the mongrels s

[Rails] Re: Rails Error

2009-04-15 Thread Frederick Cheung
On Apr 15, 4:55 am, fadil wrote: > I'm totally new with ruby on rails > My machine running ubuntu 8.10 and i have installed ruby 1.8.7, > rubygems 1.3.1 and rails 2.3.2, sqlite3, postfix adn subversion. > The problem is when i want to create a simple blog application this > error came out. Tha

[Rails] Re: Complex forms: only one level of “arra yness” is allowed?

2009-04-15 Thread Frederick Cheung
On Apr 15, 1:07 am, PJ wrote: > > "model_a[model_b_attributes][][model_c_attributes][][an_attribute]" > > But it doesn't seem to work. I read > herehttp://guides.rubyonrails.org/form_helpers.html > that "only one level of “arrayness” is allowed" and that I should use > hashes instead, but I am

[Rails] Re: Controlling concurrency

2009-04-15 Thread Frederick Cheung
On Apr 14, 10:55 pm, steveluscher wrote: > What do you think is the best way to prevent overselling in this case? > I've considered: > > * Table locking (sucks) > * Setting a lock file per-Product (filesystem-y and not elegantly > scalable past one machine) > * Setting a lock variable per-Product

[Rails] install error for rails-widgets

2009-04-15 Thread nmt999
When i am trying to install the rails-widgets on windows vista from http://wiki.github.com/paolodona/rails-widgets location I get an error. Please help. cd myrails-app ruby script/plugin install git://github.com/paolodona/rails-widgets.git rake widgets:setup following is the error --

[Rails] Rails Error

2009-04-15 Thread fadil
I'm totally new with ruby on rails My machine running ubuntu 8.10 and i have installed ruby 1.8.7, rubygems 1.3.1 and rails 2.3.2, sqlite3, postfix adn subversion. The problem is when i want to create a simple blog application this error came out. fa...@fadil-laptop:~$ sudo rails blog /var/lib/gem

[Rails] RoR engineers needed in San Francisco

2009-04-15 Thread dtessitore
Hello Group, Do you love games? My client is looking for a few RoR developers to work on-site in San Francisco. This is a very exciting company making some very exciting apps. Find our more about the position here: http://heynow.com/jobs/09031102.html If interested please send along your resu

[Rails] Complex forms: only one level of “arrayn ess” is allowed?

2009-04-15 Thread PJ
Hi all, I thought I was trying to do something rather simple, but it has caused me a lot of headaches. Here it is: - in my program: model_a has_many model_b. model_b has_many model_c. - in the user interface, I would like the user to be able to fill the information for one model_a, one or more

[Rails] Controlling concurrency

2009-04-15 Thread steveluscher
What do you think is the best way to manage concurrency in this (made up) scenario? 1) You are selling Orders for items of various ProductVariants, belonging to one Product 2) There may be an upper limit to how many Orders you can take for any given Product 3) For our example today, you can only

<    1   2