search for: restechservices

Displaying 5 results from an estimated 5 matches for "restechservices".

2006 Mar 10
2
adding to has_many on create and edit
Hello, I am fairly new to RoR and I have a question I hope can be solved elegantly (so many things are, so why not this one too?). I have a working solution, but I want to be sure I am doing things the "rails way" (having come from PHP). You could say I am looking for a little validation (no flames please). I have a table of units like so: CREATE TABLE `units` ( `id`
2007 Aug 22
6
simple tbf rate clamping issues
Hello, I was attempting to throttle egress traffic to a specific rate using a tbf. As a starting point I used an example from the LARTC howto, which goes: tc qdisc add dev eth1 root tbf rate 220kbit latency 50ms burst 1540 I then attempt a large fetch from another machine via wget (~40 megs) and the rate was clamped down to about 12Kbytes/s. As this seemed too much, I gradually increased
2006 Jun 10
2
regex help
I am trying to write a model validates_format_of that will accept a field containing only certain characters. I want the field to only allow the following characters: a-z, A-Z, 0-9 and the ''_'', ''@'', ''.'' and ''-'' characters. I have hunted around a bit and came up with this: validates_format_of :password, :with =>
2006 Apr 13
1
url_for in email templates
Is there a way I can use url_for in an email template? When I try and use it it barks a no method error. Thanks, Nicholas P. Mueller
2006 Jul 19
4
Rails crashes my fcgid/fastcgi/scgi on apache2/lighttpd :<
Or maybe I crash it and don''t know why. Here is the setup: I have an action that will crash my debian sarge development box using fcgid, fastcgi and scgi running with Apache2, as well as fastcgi running with lighttpd, every time. Here is the action from the controller: ------------------- def crashme @orders = Order.find(:all, :order => "`id` ASC", :offset