Displaying 3 results from an estimated 3 matches for "kweschun".
2006 Jan 03
2
Stopping a save from the before_save
What''s the better thing to do in a before_save if you don''t want the
save to continue?
raise an exception, or do an errors.add or both?
Thanks,
Chris Nolan.ca
http://kweschun.com/ - Do you have a Kweschun?
2005 Dec 30
2
Crashing Firefox when updating the same div
...where I''m :updating the same div that
I''m currently in.
Would it help if I try to isolate the code? Would it be more a
firefox bug, or a JS bug? i.e. do we think we can fix the library,
or do I have to go around it until firefox gets fixed?
Thanks,
Chris Nolan.ca
http://kweschun.com/
http://EhList.ca/
2006 Jan 03
4
validates_presence_of *_id attributes
Hi all,
I am a newbie to Rails. Please enlighten me on how to do this
appropriately, the Rails and the Ruby way:
Suppose I have a Recipe model. Let''s simplify things and pretend that
it has only 2 attributes, a :name and the other is a ''category_id''. In
the recipes table, category_id is a foreign key to field id of table
categories.
We also assume that I have generate