search for: funkaster

Displaying 6 results from an estimated 6 matches for "funkaster".

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 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 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 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
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