#rubyonrails - Sun 29 Apr 2007 between 02:15 and 02:29



pythonicin place flatten
p34rtpope: pythonic thanks for the help, i spent like 20 minutes going through all my code figuring out and tracing whats going wrong :\
tpopeyou don't need to_a
it's implied
p34rtpope: ah ok. i took it out anyway and it still works :)
daveman1010220Is there a way to specify the action i want to perform here: <form action="../function" method="POST"">? As in, action="../controller/action" ?
vipacaHello Rails!
Do you guys mind if I ask a question?
pythonicyes
tpopedaveman1010220, just use form_tag
that's what it's there for
vipacapythonic: yes you mind?
tpopedon't ask to ask just ask
first rule of irc
vipacatpope: thanks
pythonicask don't ask to ask just
vipacaWell I've got a couple of diffrent models that are related to a single comments model
so should I create a new comment model for each or just do multiple has_many and belong to relationships with appropriate members in the comment table?
tpope: a regular crowd stopper
tpopeif it's really just two models, I'd probably do two comment models
because that's easier than the polymorphic headache
vipacawow thats good
my mind has been torn btw
there are many pros to having the single model
tpopeif it's more than that, I'd look at polymorphic joins or a more complicated data model
well if your use cases suggest that you'll need to treat them as one model many times
go for it
vipacayeah ultimatley I would want to make a customizable fead from these comments
its also worth noting that there that the many models are in a hierchal form
A has B has C and each has comments
ultimatley if a user belongs to group A then they would recieve feeds from all going ons in A
and so forth for other A's
but from a web perspected comments would sit in their respective place
either way I keep thinking of those arbitrary columns in my table A_id, B_id, C_id
agentantspantsquick question.. how do I create an image that is linked to an action? I can't see how to use image_tag and _link_to together
tpopevipaca, well, learn how polymorphic joins work if you haven't already
vipacatpope: thats what I was going to ask you
tpopeand I was going to suggest you read the fine documentation
vipacatpope: ah rtfm I've noticed that becoming more common around here now adays
tpope: regards

Page: 2 9 16 23 30 37 44 51 58 65 72 79 

IrcArchive