#rubyonrails - Tue 20 Feb 2007 between 00:00 and 00:21

NY Lost Funds



r38yholy crap...Hash.from_xml
I knew there was an easier way.
aroonicarterparks: well im curious about switching to it from the regular acts_as_authenticated.... are there any big changes? (other than using named routes probably)?
carterparkswell, the names the routes use are different in order for them to be restful... (i.e. login is sessions/new)
WALoeIIIofftopic: anyone here use EveryDNS extensively?
carterparksbut you can also make aliases for login/logout
tpopeno I only use it regulary
njeroI have a legacy table... unfortunately I am not ready to just rename everything in it yet... I am wondering if there is a good way to create an AR model and map the table name and field names (and keys) with an eye toward what they will eventually be
the main problem is the legacy app needs to still be running during the changeover...
joevandykOrders belong_to :billing_address, :class_name => 'Address', :foreign_key => 'billing_address_id'. How do I do a find on orders and include the billing and shipping address?
aroonicarterparks: is that the only difference
carterparksto be honest, arooni i haven't used acts_as_authenticated
arooniahh i suppose we could ask technoweenie
as he wrote them ! :P
carterparksthis is true
|PiP|how do i set how long i want a session to be?
like for Admin's i want it to be 2 hours, for customer's, 15 minutes
macdcan someone recommend a good resource for apache2.0 + mongrel_cluster
carterparksmacd: http://blog.codahale.com/2006/06/19/time-for-a-grown-up-server-rails-mongrel-apache-capistrano-and-you
the mongrel website also has pretty extensive documentation
macdI must be missing something really easy then, when I access via my vhost the browser tries to download index.rhtml, mongrel is running fine.
bennyw|PiP|: there is no built in session expiry IIRC, you kill sessions based on whatever rules you want, and the provider you are using
|PiP|bennyw: is there a way to time-out inactive sessions, and perhaps run an action?
bennywdepends on your session provider - filesystem, database, memcache etc
kainguys, I've this: @message.title = "Re: " + @message.title how can I keep only one "Re:" if another is found?
|PiP|okay, how do you eager load a Model?
Nwallinswhat is the best way to handle plugins with svn?
kain|PiP|: :include => %w(othermodel)
afaik
Nwallins: try out piston
saint_cypherkain, @message.title = "Re: " + @message.title unless @message.title =~ /^Re: /
kainthank saint_cypher
uhm
but if having Re: Re: arf in @message.title
there should be one
aroonihow do i solve this: FoosController: missing default helper path foos_helper
robdHey all!
technoweeniearooni: its missing a helper right, try adding that helper
aroonitechnoweenie: i have already added a foos_helper.rb in the helpers/ dir
kainarooni: :helper ?

Page: 2 9 16 23 30 37 44 51 58 65 72 79 86 93 100 107 114 121 

IrcArchive

NY Lost Funds