#rubyonrails - Sat 5 May 2007 between 18:22 and 18:29



court3naybecause you're doing :select or overwriting the record_id ?
dalexandrecourt3nay, but i can use the gem command..
court3naydalexandre: no idea
dalexandrecourt3nay, this error just appears when i run script/console
PuppiesOnAcidcourt3nay: It seems when I do that, I just get "302"
infridI don't get it...
amasonIf 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?
court3nayPuppiesOnAcid: you have login required i gues
aztaPuppiesOnAcid: app.response.redirect_url
court3nayapp.follow_redirect!
AnakinKainhello.
is there a way to make a global render partial?
infridcourt3nay - when you said becuase you're doing :select or overwtng rec_id.. was that aimed at me?
aztaAnakinKain: views/global/_foo.rhtml, render :partial => "global/foo" ?
AnakinKainthat can be ok thanks.
i thought it was abit more complex than that.
infridGuys - serious weirdness here.. Got a problem where I've got some news items, in a newItem model
aztathat is weird, true
actionazta hides
aztahides
infridand 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
testrailsazta, 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
infridbut 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
testrailsazta, when the fileinput field is left empty, and the submit button is pressed, i need some error checking, validation doesnt pop in
infridI've been so kind to it
I've paid it my respects, and performed the designated austerities and rituals
aztatestrails: strange, "nil.is_a?(String) => false"
infridI've debugged in the manner prescribed in the scriptures
t432tim^ you there?
testrailscan't convert nil into String
aztainfrid: pastie up your model and stuff
testrailsmhh thats weird
is it beacause it is an almost file-like object, but isnt a file
aztatestrails: 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

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

IrcArchive