| court3nay | because you're doing :select or overwriting the record_id ? |
| dalexandre | court3nay, but i can use the gem command.. |
| court3nay | dalexandre: no idea |
| dalexandre | court3nay, this error just appears when i run script/console |
| PuppiesOnAcid | court3nay: It seems when I do that, I just get "302" |
| infrid | I don't get it... |
| amason | If I have two hashes, group1.users and group2.users, is there a way to find the users that are in common to those two sets? |
| court3nay | PuppiesOnAcid: you have login required i gues |
| azta | PuppiesOnAcid: app.response.redirect_url |
| court3nay | app.follow_redirect! |
| AnakinKain | hello. is there a way to make a global render partial? |
| infrid | court3nay - when you said becuase you're doing :select or overwtng rec_id.. was that aimed at me? |
| azta | AnakinKain: views/global/_foo.rhtml, render :partial => "global/foo" ? |
| AnakinKain | that can be ok thanks. i thought it was abit more complex than that. |
| infrid | Guys - serious weirdness here.. Got a problem where I've got some news items, in a newItem model |
| azta | that is weird, true |
| action | azta hides |
| azta | hides |
| infrid | and if I do NewsItem.find_by_sql("select id, ....blah,. ... from news_items where use_press=1 order by story_date desc ") the ID comes out totally wrong even if I do find( :all, :order => "story_date desc", :limit => "1", :conditions => "popup=1") it's totally wrong |
| testrails | azta, first i get the error original_filename: no method for string, and on testing params['file'].is_a?(String), i get cannot convert nil to a String, and on testing params['file'].nil?, the test fails |
| infrid | but it's fine if I paginate.. I honestly have no chance of solving this. can anyone tell me why rails wants me to suffer so badly |
| testrails | azta, when the fileinput field is left empty, and the submit button is pressed, i need some error checking, validation doesnt pop in |
| infrid | I've been so kind to it I've paid it my respects, and performed the designated austerities and rituals |
| azta | testrails: strange, "nil.is_a?(String) => false" |
| infrid | I've debugged in the manner prescribed in the scriptures |
| t432 | tim^ you there? |
| testrails | can't convert nil into String |
| azta | infrid: pastie up your model and stuff |
| testrails | mhh thats weird is it beacause it is an almost file-like object, but isnt a file |
| azta | testrails: params[:foo] = "bar"; params[:foo].is_a?(String) => true; params[:foo] = nil; params[:foo].is_a?(String) => false testrails: I dunno where that error is coming from |