Displaying 1 result from an estimated 1 matches for "delicious_import".
2007 Jan 12
2
Forking a process in Rails is messing up mongrel
...hin my controller I do this:
# fork a process
config = ActiveRecord::Base.remove_connection
fork_with_new_connection(config) {
@environment = (RAILS_ENV == ''development'') ? ''dev'' : ''prod''
system("ruby ./public/utils/delicious_import.rb -u #{@user} -p
#{@pass} -r #{@rating} -d #{current_user} -e #{@environment}")
}
ActiveRecord::Base.establish_connection(config)
I have two questions. First, is this the proper/correct way to run an
external script from a rails controller. I just want to fire off the
script and c...