Displaying 4 results from an estimated 4 matches for "dmarkow".
Did you mean:
markow
2008 Apr 04
5
First call to worker method doesn''t work
I have a worker as follows:
class SampleWorker < BackgrounDRb::MetaWorker
set_worker_name :sample_worker
def create(args = nil)
# this method is called, when worker is loaded for the first time
end
def my_method
# Deliver test e-mail message
Notifications.deliver_message(1, "DM")
end
end
I have a rails controller that calls the following code:
worker =
2007 Oct 16
3
Controller iterating through returned records and appending to each
I have a controller that gets a list of employees (which has an "include =>
[:salaries, :incentives, :billablegoals, :reviews]"). I then need it to
iterate through each employee and determine their current active goal based
on the "effective date."
After playing around with it a bunch, I got the following to work. Only
problem is that if I remove the "@employees.each {
2010 Aug 18
2
RSpec 2/Rails 3 - content_for in view specs
...;shows a URL if present" do
@contact = Factory(:complete_contact, :web_page => "
http://www.example.com") # Using Factory Girl
render
rendered.should have_selector("span", :content => "
http://www.example.com")
end
end
Thank you!
Dylan Markow
dmarkow at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20100818/5ae5b44c/attachment.html>
2008 Apr 02
1
Specifying environment in backgroundrb.yml
It seems that regardless of what environment I specify in my
backgroundrb.yml file, it always uses development mode unless I pass
"-e production" to the "script/backgroundrb start" command.
>From looking at bdrb_config.rb, it looks like immediately after
loading the config file it assigns whatever was passed on the command
line (which defaults to development if nothing is