#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 10 11 12 13 
Top Prev 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 Next

#rubyonrails

<tpope> it's a painful procedure I don't want to walk you through
<valehru> and I've been looking at google for ages.
<tpope> but I can give a tip or two
<valehru> ok...tip one: don't eat yellow snow.....
<valehru> ready for tip two ;)
<tpope> edit public/.htacess
<tpope> remove AddHandler fastcgi-script .fcgi
<tpope> you want fcgi not fastcgi, probably
<nukio> valehru: this might help http://www.google.com/search?hl=en&safe=off&client=safari&rls=en&q=CPANEL+RAILS+fcgi&btnG=Search
<tpope> and that will get in the way and cause mysterious errors
<tpope> chmod log and log/* 0777
<tpope> to make absolutely sure rails can write to them
<tpope> so you can better debug it
<tpope> now go make sure the fcgi module is really loading
<tpope> there are wiki.rubyonrails.org entries about setting up fcgi, follow them
<valehru> So should I replace that AddHandler fcgid-script .fcgi with this one then? AddHandler fastcgi .fcgi ??
<tpope> also, if you're using scaffolding, it sounds like you're doing development
<tpope> don't use apache for development
<tpope> you'll drive yourself insane
<tpope> just start script/server
<valehru> I just want to test it...
<valehru> thats the only reason I have scaffolding running
<nukio> tpope: i modified the RAILS_GEM_VERSION to 1.2.2 and now i'm getting application 500 errors... but if i change it back to 1.1.6 it works fine... any clue why? and i'm getting routing errors in the production.log file... shouldn't it just work?
<valehru> just a basic controller.
<tpope> valehru, just set the AddHandler thing in the main apache config. the defaults usually do that anyways
<tpope> nukio: could be many things. if it's a production site, don't switch on a whim
<tpope> fix the real problem I already told you about
<nukio> tpope: ok.
<tpope> this isn't causing that error
<nukio> tpope: that werked!
<nukio> now i'm getting 500 errors
<nukio> tpope: ahhh its in the logs!
<RadarListener> Why when I create a model for comments that has belong_to :blog and in the model for blog I have has_many :comments, can't I reference comments for a blog by blog.comments?!
<tpope> yes RadarListener
<tpope> and with that I must depart
<tpope> before I give myself carpal tunnel
<RadarListener> yes isn't an answer? :\
<tpope> you can references Blog.find(:first).comments
<RadarListener> Ta.
<tpope> but blog sounds like a poor choice
<tpope> blogs have articles which have comments
<tpope> the don't usually have comments themselves
<RadarListener> "Blog" is the name of the singular entry.
<RadarListener> It's only me reading the code anyway.
<technoweenie> blog usually means teh collection of entries that have been written
<RadarListener> Yes
<RadarListener> if it sates your appitite for 100% pure politically correctness AND fixes my problem, then I'll change it.
<tpope> keep you code like you would your underwear
<tpope> clean
<tpope> you never know when you will be hit by a bus and the whole world will see

Previous Page  Next Page

Search ircarchive.info