Displaying 20 results from an estimated 1000 matches similar to: ":load_rails"
2006 Aug 07
2
uninitialized constants in worker class
I am new to this list and relatively new to the backgroundrb plugin,. So
first i will say hello to everybody here, especially to Ezra
Zygmuntowicz!
I played a little bit with a dummy worker and so far everything worked
well.
But now i want to do real work in a worker but now i get that error[1].
It looks like that the constants configured in environment* configs are
not available to the worker
2006 Aug 01
2
actionmailer cant find template in backgroundrb
Im trying to send mails from a backgroundrb worker and it seems like
ActionView cant find my template. same code works as a rake task.
here my worker:
class StatusMailWorker < BackgrounDRb::Rails
repeat 1.minutes # <-- hehe!
def do_work(args)
[...blah...]
NotificationMailer.create_daily_report(users, rep, items)
end
end
end
its throwing the following error:
No
2006 Aug 01
2
making backgroundrb cron
Hello,
i need to have some jobs scheduled in the background and executed at
specific times. I wanted to make a worker who does that - and it works a
little bit - but i had an enlightment... why not make bgdrb itself play that
role? i mean, the MiddleMan has already everything needed! a timer thread,
currently used only for deleting old workers and the workers itself. since
im not familiar with
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 06
1
ActiveRecord: determine if attribute has changed since save
Hello there,
i need to determine whether an attribute of my model has changed since the
last time it was saved. how can i do this?
greets
--
Michael Siebert <info@siebert-wd.de>
www.stellar-legends.de - Weltraum-Browsergame im Alpha-Stadium
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2006 Aug 05
1
[PATCH] --detach on win32
Hello there!
I made a little patch for scripts/backgroundrb/start to make detach work on
win32!
It needs win32-process to work (it''s a lib from the Win32 Utils project on
rubyforge: http://rubyforge.org/projects/win32utils/). To install it, just
issue a "gem install win32-process --include-dependencies". If the script
detects the :detach option (and a win32 platform), it tries
2006 Jul 25
1
bgdrb hangup
Hi,
i had a little problem a few minutes ago. somehow the backgroundrb process
got mad and consumed all the cpu power available, i think it got an endless
loop. i dont know why, no exceptions were thrown.
could this be an issue of bgdrb or ruby or rails (as i load the rails
environment)
--
Michael Siebert <info at siebert-wd.de>
www.stellar-legends.de - Weltraum-Browsergame im
2006 Aug 23
5
Singleton-like Worker
Hello there,
I need a Worker Class to be Singleton-like, that means there must be at
maximum one Instance at a time. When a new Request is made to create another
worker of this type, it should return and wait for the other instance to be
destroyed.
what i need to do: i have a worker who needs to do sth with java and
openoffice, and it seems when i have more tha one worker simultaneously,
2006 Jul 06
6
Mutex::Synchronize with backgroundrb
I have a question concerning where to use the synchronize function. The
point of it is to put all of the code blacks passed to this function in
a queue. This make sure that code gets ran one at a time. This is
required when doing any kind of database activity in backgrondrb and
multiple threads. Otherwise I lose the connection to my database.
So here is my question:
Do I need to do:
@lock =
2006 Aug 07
8
Syntax Problem
In an *.rhtml, why do I need to add <% for product in @products %> in
order that I may call an <img class="list-image" src="<%=
product.img_url %>"/>. Is there not another way to skip the "for
product" line? I really dont want to include it. I tried @products =
product but it does not work. Can anyone help shed light on this matter?
--
Posted via
2006 Aug 16
6
Photo Albums?
Hello all,
Can anyone recommend any free(ish) Ruby photo album components?
Preferably something with a user structure built in.
Cheers.
--
Posted via http://www.ruby-forum.com/.
2006 Aug 10
7
Mongrel and SSL?
I have a small intranet app with only 20 or so users.
I''m currently using lighttpd w/ssl for production and mongrel for dev.
I don''t think Mongrel supports ssl, but what is the easiest front-end
to put in front of it? Pound?
Thanks
Greg
--
Greg Freemyer
The Norcross Group
Forensics for the 21st Century
2006 Aug 10
1
IMPORTANT: Rails update 1.1.6
for those who didn''t read it somewhere else: the bug being adresseb by
1.1.5was not completely fixed, so now theres another security update:
http://feeds.feedburner.com/~r/RidingRails/~3/10954980/rails-1-1-6-backports-and-full-disclosure
anybody using engines, dont update since this update will break the plugin,
more info for fixing the bug in this case also in the blog.
--
Michael
2006 Jul 24
1
require file from /lib in a worker
Hello,
i need to require a file located in /lib from a worker class, but when i try
to start the backgroundrb server, i get something like
d:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require__'':
no
such file to load -- ./lib/office_thumnail_generator.rb (MissingSourceFile)
i tried it with and without lib, with RAILS_ROOT, nothing worked, altough
the paths look good
2006 Jul 31
1
[PATCH-SUGGESTION] autostarting workers
Hi there,
as i stated before in my talk with Ben Johnson, I hacked a little bit and
here it is - autostarting jobs. I think someone (eh... Ezra) should review
it and check to see if i made any mistakes. Also i dont have the possibility
to test it on other-than-Windows systems, but since the calling process
works just the same, it should do well...
Now the neccesary evil, the documentation...
If
2006 Aug 14
1
Testing CRUD/Rest Controllers
I have a few simple controllers doing plain, simple crud in a standard way.
now it''s not very DRY to write a funtcional test for each controller, since
they are all doing the same (apart from a few variable names, but that could
be easily inflected or so).
is there a way to do this?
e.g. does inheritance work with tests, so i define a base test first,
inherit my other tests and add a few
2006 Aug 10
2
Permission denied
Hi to all.
I''m a newbye, and this is my first contact with list.
I have installed ruby and rails.
My ruby local home page works, but development.log tell me
"Permission denied -
/var/www/html/rubyapp/../config/../tmp/sessions//ruby_sess.e2677250ed380e4c
"
what''s happen?
I think permission rights are ok
(simlink towards public are root|root with 777).
Someone can help
2006 Aug 07
3
repeat_every doesn''t tie in with first_run...
Ezra,
Sorry for inundating the list. In using the autostart, repeat_every,
and first_run, I noticed a behaviour I didn''t expect.
I would like the job to run starting at 2am, and then every 24 hours.
So I set first_run to Time.now.beginning_of_day + 2.hours, and
repeat_every to 24.hours.
The problem is if backgroundrb starts up at 6am (due to a code change
or server bump), then the
2006 Aug 07
2
Process status...
I''ve used Railscron in a couple instances, and I liked that fact that
it has a rake task for checking the status of the process. Many times
I use it in the admin interface to allow me to double check that
everything is up and running.
I couldn''t find one for backgroundrb, so here is a simple one.
Probably obvious to everyone, and no doubt there is a better way to do
it:
2006 Aug 08
8
executing external code
I''m trying to run some non-ruby code in my rails app and i''m not sure
how to do this. The code i have would take a really long time to port
to ruby and so i''d rather run it as is (its php). What i would like
to have happen is that the code can be invoked as an ajax call. And
just return some data in JSON.
I keep running into a routing failure by actioncontroller and