I think the way we do it is hardcode the host, and the subdomain is pulled from the database (each account has a unique subdomain, but all on the same host name).
Once you start considering things like host name and subdomains in your app, development gets to be a PITA. I've had very much the same experience as the WUFOO guys w/ this:
http://particletree.com/notebook/subdomains-development-sucks/ On Jun 26, 2007, at 3:24 PM, Glenn Little wrote:Thanks, but yeah, it doesn't know about the "request" method, so I can't get at request.protocol or request.host.
Do you all just punt at this point and hardwire it in?
Anyone who is using restful authentication, how do you
set @body[:url] in <user>_notifier.rb (where "user" is
whatever you call your user account model)?
-glenn
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Sdruby mailing list [email protected] http://lists.sdruby.com/mailman/listinfo/sdruby
