Displaying 20 results from an estimated 2000 matches similar to: "ER strikes back"
2005 Sep 14
9
Sending Emails via Cron
I''m developing an application using RoR that will generate enough email
notifications that I don''t want them in the actual web application. So, I''m
thinking about having an outgoing queue that a cron job would pick up and
deliver. My question is if this is possible with a ruby script that uses
ActiveRecord and ActiveMailer?
2005 Apr 17
14
Leaky Webrick (?) & image corruption
Hi guys,
After a few days of webrick seeming to use up a ton of ram (the longer it was running, the more ram); izayoi on #rubyonrails kindly suggested changing Dependencies.mechanism in development.rb to :require which appears to have fixed the prob - at the expense of having to restart webrick after making changes to .rb files. Is this a known issue, or is there an alternative solution?
2005 Oct 19
35
Why you MUST use SCGI for Rails development
Hello happy Railers,
I used to develop with a local out-of-the-box Apache and load times were
pretty slow (like a few seconds each page). "Well, it''s the price to
pay for no compile / cache / etc..." I thought. Nonsense. Yesterday I
installed SCGI, and now I''ve got the best of both worlds: rails
development env uses my very latest modifications, while SCGI ensures I
2005 May 24
2
Deleting from a 'has_many' collection doesn't set the foreign key to NULL
Hi all,
I have an Active Record problem. Having this classes declaration.
class Sale < ActiveRecord::Base
has_many :sale_line_items, :class_name ''SaleLineItem''
...
end
class SaleLineItem < ActiveRecord::Base
...
end
When I try to delete an item in a Sale class method from sale_line_items
(sale_line_items.delete(li)), it extracts ''li'' from
2008 May 19
2
Log or diary file
Hi!
Is it possible to set a file to which both
commands and output would get automatically
saved? I've tried with sink(), but only get
the output. I mean something
like a combined history and sink, as you
get with File/Save to File.. in the windows
GUI.
Tis is done with diary filename in Matlab,
and you can state diary on and
diary off to control what is being saved to
the file.
Thanks
Agus
2008 Sep 02
5
Appending a record to a table
Hi
I''m not too sure how best to explain this but here goes!
I am trying to write an appointment system. I have, through example,
just about got the dynamics correct. Even tried to play with some
table joins (and excuse me if I''ve used the incorrect terminlogy). But
no matter what I try I can''t seem to get the following code to work.
I have a cart filled with Treatment
2006 Mar 29
3
Redirect Post for Hiding ID?
I have a situation where I want to show the user details about an
appointment they entered. They enter their name, phone number(s) and
other private data in a form. I save that data in the controller with
a POST from a "confirmation" page.
I could simply show the params when that page is rendered (the save
one), but if they use the browser refresh it''ll save the data again.
2009 Nov 01
1
please help - complicated polymorphic association
I am trying to build a shared-appointment system, where users can
subscribe to appointments and be updated whenever changes are made to
them. I have three objects in this system, appointments, users, and
subscribers. Subscribers are a polymorphic object like so:
class Subscriber < ActiveRecord::Base
belongs_to :user
belongs_to :subscribable, :polymorphic => true
end
The tricky part is
2006 Jun 01
5
History plugin
Hello,
I felt annoyed enough when having to redirect user back to their
previous location in a hackish way that I wrote this plugin.
It avoids storing POST and Ajax request. It also has a facility to
specify actions not to store in the history.
If you are interested, it''s there:
http://blog.cosinux.org/pages/rails-history
See you all,
Damien
--
Damien MERENNE
2010 Oct 27
8
Advanced Diary.
Help me plz run Advanced Diary is 3.0.1
I install mMicrosoft MDAC and can run application, but get error "Provider cannot be found. It may not be proprely installed".
How i can run it? =(
2006 Jul 24
18
difference between running unabridged
22 sudo mv camping.rb camping-abridged.rb
23 sudo mv camping-unabridged.rb camping.rb
when running into problems, the abridged version of camping is rather
difficult to debug.
so I''m moving to unabridged, but I''m getting this error.
[Mon Jul 24 15:50:18 2006] [error] [client 192.168.11.100]
2013 Apr 26
2
looking for a way to do appointment reminders
Hello,
My health care organization is looking for a way to do appointment
reminders. We currently have staff members who spend part of each day
manually calling patients to remind them of their upcoming appointments,
and we would like to automate this process.
Our electronic health record software would provide such information as
the patient's name, phone number, and day and time of
2007 Oct 07
22
Differences in execution between console and app
class AppointmentBook < ActiveRecord::Base
has_many :appointments
def lookup(date, look_ahead = 27)
return nil unless block_given?
(date..date + look_ahead).each do |date|
yield(date, appointments.find_all_by_date(date))
end
end
end
The line with yield is throwing the error:
undefined method ''each'' for #<Date: 4908761/2,0,2299161>
A YAML
2006 Jul 26
1
Seek Error ?
anyone ever got this error ?
[Wed Jul 26 17:36:25 2006] [error] [client 192.168.11.100] (eval):21:in
`seek'', referer: http://rf.mathieu.mv.sha/diary.cgi/edit/1?someting=true
[Wed Jul 26 17:36:25 2006] [error] [client 192.168.11.100] : , referer:
http://rf.mathieu.mv.sha/diary.cgi/edit/1?someting=true
[Wed Jul 26 17:36:25 2006] [error] [client 192.168.11.100] Illegal seek,
referer:
2008 Mar 11
1
KOrganizer problems
My file/print/mail server is CentOS. My laptop is Mandriva 2008.0. I have
smb shortcuts loaded by fstab to give instant access to my home directory and
a data directory on the server. All was working well, after some initial
problems with firewall and selinux, until yesterday.
After finding from the logs that someone was trying to get into my imap server
I decided that, although they
2007 Jul 13
2
error on running Advanced Diary v1.3
Advanced Diary (a simple calendar/journaling program)installed fine, but
when I go to run it the splash screen for the program shows up then I
get an error box that says:
Error Creating Object. Please verify that Microsoft Data Access
Components 2.1 or later have been properly installed.
The program stops there.
A google search turned up this a download page for MDAC 2.8 here:
2010 Jul 15
3
Good script to make appointment?
Hello
I'd like to write a script that would make it easier for people to
call in, listen to the IVR, and make an appointment (eg. "When? ASAP?
A given day?" -> "Morning? Afternon", etc.)
I assume I'm not the first one to try and write this type of IVR, so
would appreciate any feedback on writing this.
Thank you.
2008 Nov 15
6
WARNING - WINE DOESN'T WORK WITH OFFICE 2003
Wine is not ready for prime time former windows users. Office 2003 can be installed, but daily use of the application continues to face multiple error or simply dead space. Linux may be free for your pocketbook but not your time.
2004 Nov 08
7
[Fwd: Weft - a free open-source QDA tool]
Hi
Just released a first version of the WxRuby project I''ve been working
on. Firstly, I wanted to say thanks to everyone on this list who''s
helped at various points over the past year - every time I ran into a
problem someone jumped in with advice.
A very brief explanation of the app - I''m a sociologist/anthropologist
by trade, and the app is intended for use in
2012 Oct 23
10
How to pick colums from a ragged array?
I have a large dataset (~1 million rows) of three variables: ID (patient's name), DATE (of appointment) and DIAGNOSIS (given on that date).
Patients may have been assigned more than one diagnosis at any one appointment - leading to two rows, same ID and DATE but different DIAGNOSIS.
The diagnoses may change between appointments.
I want to subset the data in two ways:
- define groups