search for: abarca

Displaying 10 results from an estimated 10 matches for "abarca".

Did you mean: barca
2006 Jul 11
9
problems with observe_field
Hi all, I''m having problems with an observe_field, this is the view: <%= form_tag %> <div id="content"> <p>Customer: <select name="cliente_id" id="cliente_id"> <option value="">Select a customer</option> <%= options_for_select Cliente.find_all.collect {|c| [c.razon_social, c.id]} %>
2006 Aug 07
9
problems with ActionMailer
Hi all, I''m trying to create a worker to send a mail to all the users in my db. Right now I''m doing the tests, this is the code in my worker (Masivo is the ActionMailer subclass): def do_work(args) @progress = 0 @logger.info("MAILER: starting job") records = Record.find(:all) total = records.size records.each_with_index do |record, idx|
2006 Aug 17
2
php application inside rails public directory?
Hi all, I need to install cerberus inside my rails app''s public directory... I agree that the best method would be to put the whole php app in it''s own subdomain, but for now (i''m just testing) that''s not possible... What would be the way to do that? thanks! rolando.- -- Posted via http://www.ruby-forum.com/.
2006 Aug 03
2
thread problems
I have a really long series of queries (import from other database*) that takes about 2 or 3 minutes. I wanted to spawn a thread and put the job there, but there seems to be some problems with active record and threads: (this is what I found after googling) Thread.abort_on_exception = true => true 100.times do Thread.new do Client.find(:first) end end this throws an exception... So
2006 Feb 01
4
exclude a column in save!
Hi all, I have a column that peeks its value from a sequence (postgres) some times. Other times, I set it to a certain value. This column has a default value of "nextval(''the_sequence'')"... When I want that this column peeks the value from the sequence, I do this: obj = Mymodel.new obj.some_column1 = blah obj.some_column2 = blah obj.some_column3 = blah obj.save! but
2006 Aug 22
9
Article: High-Performance Ruby On Rails Setups Test...
This week we have started one new project with Ruby on Rails as primary framework. My first task was to prepare runtime environment for it on one of our development servers. When I have tried to research how people doing it, I noted that there is no information about how to deploy rails application with nginx as frontend and what is performance of such solution. Before blindly make any
2009 Nov 22
5
¿Cómo se llama R?
Hola, ¿qué tal? Después de un paseo por la Wikipedia en español he llegado a la conclusión de que no sé cómo se llama R. En la Wikipedia se lo conoce como "R-project", así, en inglés. Existen otros nombres que redireccionan a la misma página, tales como: Lenguaje de programación R GNU S Lenguaje R GNU R R project (sin guión) A R no se lo puede llamar R a secas por lo de la
2006 Jul 24
1
problem with has_many associations
Hi all, I have some problems with a few temporary objects, this is the relation between them: A -(1,n)-> B -(1,1)-> C B -(1,n)-> D C -(1,n)-> D I have a "wizard" to create "A" objects, I''m storing everything in the session, something like this: a = A.new session[:a_object] = a ... b = B.new b.c = some_c_instace a.bs << b ... d = D.new b.ds
2006 Aug 22
1
Scio Excel library
Maybe just reinventing the wheel here, but it might be useful for someone. It''s a simple library that creates a one-sheet workbook and lets you play with styles (cells and headers). You can download it here: http://rolando.cl/media/ruby/scio_excel.rb and the rdoc (examples and how-to): http://rolando.cl/media/ruby/doc/index.html Oh!, btw... it''s "inspired" in the
2006 Jun 16
4
problem with join
Hi all, I''m having a problem with a join inside a paginate, the code is like this: @ruta_pages, @rutas = paginate :rutas, :conditions => conds_arr, :joins => "AS ru LEFT JOIN vehiculos AS ve ON ru.vehiculo_id = ve.id", :per_page => 10, :order => "fecha DESC" The problem with this, is that the query returns the