| pythonic | in place flatten |
| p34r | tpope: pythonic thanks for the help, i spent like 20 minutes going through all my code figuring out and tracing whats going wrong :\ |
| tpope | you don't need to_a it's implied |
| p34r | tpope: ah ok. i took it out anyway and it still works :) |
| daveman1010220 | Is there a way to specify the action i want to perform here: <form action="../function" method="POST"">? As in, action="../controller/action" ? |
| vipaca | Hello Rails! Do you guys mind if I ask a question? |
| pythonic | yes |
| tpope | daveman1010220, just use form_tag that's what it's there for |
| vipaca | pythonic: yes you mind? |
| tpope | don't ask to ask just ask first rule of irc |
| vipaca | tpope: thanks |
| pythonic | ask don't ask to ask just |
| vipaca | Well 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 |
| tpope | if it's really just two models, I'd probably do two comment models because that's easier than the polymorphic headache |
| vipaca | wow thats good my mind has been torn btw there are many pros to having the single model |
| tpope | if 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 |
| vipaca | yeah 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 |
| agentantspants | quick 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 |
| tpope | vipaca, well, learn how polymorphic joins work if you haven't already |
| vipaca | tpope: thats what I was going to ask you |
| tpope | and I was going to suggest you read the fine documentation |
| vipaca | tpope: ah rtfm I've noticed that becoming more common around here now adays tpope: regards |