#apache #archlinux #asterisk #centos #debian #gentoo #haskell #kde #kubuntu #lisp #math #mysql #perl #python #ruby-lang #rubyonrails #suse #ubuntu #vim #wikipedia 0 1 2 3 4 5 6 7 8 9 
Top Prev 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 Next

#rubyonrails

<jstew> postfix has a sane configuration system and it's very secure.
<lisa> postfix is fun
<ReinH> sendmail's config files are beastly
<locellcount> jstew: somebody recommended exim... I think ReinH, so I stuck with that. All I want to do is send out confirmation emails, not set up user accounts and quotas and what have you
<kain> postfix is the best
<ReinH> exim isn't that bad
<kain> althoug I must be sticky with qmail :(
<slowernet> if model X has_many Y's, and if i want to allow creation of Y's on the X#new view, what's an elegant way of handling the problem that parent_id for Y is undefined?
<jstew> I havent tried exim so I cannot comment on it.
<kain> the funny thing is that exim comes default on debian and nobody cares
<ReinH> slowernet: x = X.create(params[:x]); x.ys.create(params[:y]) for instance
<jstew> slowernet: thats what the << method is for
<ReinH> or x.ys << Y.create(params[:y])
<locellcount> I'm sure exim is wonderful at what it does, it just seems a little overkill for what I want to be able to do
<dagbrown> I know like one guy who keeps exim on his Debian boxes.
<slowernet> reinh, jstew: sure, but i'm using an upload method where the Y objects are created before X.save has been called, so there is no X.id for Y.x_id to be set to
<locellcount> going to give postfix a go on my local test box, webmin seems to have something on configuring it.
<ReinH> slowernet: right, so y = Y.new; x = X.new; x.save x.ys << y
<jstew> x.save will take care of that
<ReinH> missed a ; but you get the point
<slowernet> so an after_save filter on X?
<ReinH> slowernet: no... do it within the controller
<ReinH> locellcount: dunno, I don't use a control panel. But postfix might be a bit easier than exim
<slowernet> how does params[:x] contain the id's of created Y elements for it to claim as children?
<slowernet> i guess i could insert hidden inputs
<jstew> it doesnt slowernet neither object should contain an ID
<ReinH> slowernet: it depends entirely on how your form is created
<ReinH> alright, got to run boys and girls
<jstew> later ReinH
<slowernet> thanks
<BucWheat> i would like to sort the contents on my list.rhtml page clicking on the col header. how can this be done?
<pstickne> make a link from the header to tell the action to sort
<jstew> create a link to your action with a :sort => "blah" param
<pstickne> then pass in the sorted data to the view
<jstew> then just use an :order in your find
<BucWheat> that would require the entire page to reload right?
<jstew> yes
<pstickne> other options are ... ajax and/or a bunch of JS
<BucWheat> hrmm... i wonder how i could implement it in ajax to were only the bits from db are refreshed and not the headers
<pstickne> just only update the rows and not the entire table
<tavilach> hey jstew how do i pass an arg into a partial?
<tavilach> im used to something like @joke = Joke.find(params[:id]) being in the controller
<tavilach> but a partial isnt in the controller is it?
<jstew> :locals => {}
<pstickne> (eg: update the tbody section)
<tavilach> where would i put that?
<pstickne> render .., :locals => ...
<tavilach> o
<jstew> render :partial => "foo", :locals => {:joke => joke}
<BucWheat> pstickne you can be that picky with ajax?

Previous Page  Next Page

Search ircarchive.info