IRC log for 2008-02-21

0 views
Skip to first unread message

David Leal

unread,
Feb 21, 2008, 7:05:01 PM2/21/08
to me...@googlegroups.com
--- Log opened Thu Feb 21 00:00:18 2008
00:03 <+Hiall> is it possible to get around "** Ruby version is not up-to-date; loading cgi_multipart_eof_fix" errors as my won't won't upgrade from 1.8.5 :/
00:03 <+pygi> thats just a warning
00:04 <+Hiall> o so the error is somewhere else.. kk
00:04 <+Hiall> thanks
00:11 <+Damm> Hiall, but it wouldn't hurt to upgrade to 1.8.6
00:11 <+lightnote> umm my debugger is not dropping into cammandline
00:12 <+hassox_> anyone know of a good intro to vlad?
00:12 <+Hiall> Damm, i would if i had access :)
00:12 <+lightnote> it sees when I edit the controller but does not stop serving
00:12 <+lightnote> Users/light/rails/railstest/crapsandwich/app/controllers/bunnies.rb:7: warning: parenthesize argument(s) for future version
00:13 <+Damm> Hiall, ./configure --prefix=wherever, and then use that
00:13 <+Damm> ruby in a seperate installation without root is easy, painless and worth it.
00:13 <+Hiall> Damm, o.0 never knew, thanks
00:13 <+lightnote> ugh "now" it desides to work
00:13 <+Damm> Hiall, yeah, you can install it in your homedir... grab the ruby tarball, untar/gz it... ./configure --prefix=/home/me/ruby
00:14 <+Hiall> Damm, thankyou ill give it a go now :)
00:14 <+Damm> then make, make install, then install rubygems in /home/me/ruby and you're off
00:14 <+oam> make && make install
00:14 <+Damm> from there you have a seperate install for which you can break and tinker with all you want
00:15 <+Hiall> heh thats amazing actually thankyou very very much, sick of asking host to install gems very 2mins :/
00:15 <+oam> just make sure you launch the right gem installer and ruby :)
00:15 <+Hiall> ok oam :)
00:15 <+oam> or else it'll fail ofc:)
00:27 <+jodo> wycats: this is how i got the <select> thing working, if..you like....care http://pastie.caboo.se/private/ymf40ijldpkchfr8nza
00:28 <+jodo> couldnt figure out how to make a patch =_=
00:28 <+wycats> of course I care
00:28 <+lightnote> new hell undefined method `path' for nil:NilClass
00:28 <+lightnote> FileUtils.mv( filetemp.path, bunny_path )
00:28 * jodo runs to the corner of shame
00:29 <+lightnote> oh I but it's cause it still does not see the file... grrrr
00:29 <+plaggypig> jodo: http://gweezlebur.com/2008/2/1/so-you-want-to-contribute-to-merb-core-part-1
00:30 <+jodo> yea i got as far as "git commit -a -v". couldnt figure out how to save and quit :P
00:33 <+lightnote> why does debugger sometimes not work ?
00:34 <+amoeba> What a paradox!
00:34 <+l1x> !
00:35 * jodo 's head explodes
00:40 <+plaggypig> jodo: that would be a vi editor that gets spawned - just enter your commit message, press [esc] and then :wq [enter]
00:41 <+plaggypig> (:w saves and :q quits)
00:50 <+jodo> plaggypig: would never have figured that out on my own :P thanks
00:50 <+meekish> Can anyone tell me if RDOC is intelligent enough to selectively generate docs for changed files since that last time it was run?
00:50 <+plaggypig> no probs - if you get stuck with something, just ask :)
00:51 <@ezmobius> meekish: it is not that smart
00:52 <+meekish> OK
00:58 <+Hiall> is there any updated tutorials for merb? as its seems to have altered alot in structure
01:00 <+jodo> Hiall: the app directory hasnt changed
01:50 <+mdufort> On merb 0.9.0, if I use rspec test framework with activerecord orm, i get merb_spec load error... Is this a known issue...
01:51 <@ezmobius> require 'merb_rspec' in initrb
01:52 <+mdufort> Must be a load dependency error I guess. Thanks
01:53 <+mdufort> works - thanks a lot
02:03 <+tdreyno> Anyone have a before :method, :only => [ :new ] filter working w/ merb from git?
02:03 <+tdreyno> mine seems to ignore the filter completely if the :only is present
02:17 <+lightnote> debugger driving me crazy
02:18 <+lightnote> in a model how do I go about getting data from it ?
02:18 <+lightnote> def self.from(tempfile)
02:18 <+lightnote> i thought p tempfile but nooooo
02:46 <+argv[]> hmm, so i got that patch to decouple merb::server from merb's init done
02:58 <+ShayArnett> yay js debugging time :(
03:01 <+lightnote> installing on server can't activate activesupport (= 1.4.4), already activated activesupport-2.0.2]
03:02 <+mrneighborly> lightnote: you need to downgrade or go into the script that's throwing that and add: gem activesupport, '= 1.4.4'
03:06 <+lightnote> so it's safe to uninstall 1.4.4
03:09 <+mrneighborly> mmmm maybe :) unless something specifically wants 1.4.4
03:24 <+lightnote> oooo k so after gem update I get undefined method `before_app_loads' for Merb::BootLoader:Class
03:24 <+lightnote> which I really bet is baaad
03:46 <+hassox_> lightnote you need to upgrade AR for that error to sod off
03:47 <+lightnote> is that all ?
03:47 <+lightnote> huh
03:47 <+hassox_> yeah
03:47 <+hassox_> should b
03:47 <+hassox_> be
03:47 <+lightnote> that saves recompling
03:50 <+cbarrie> Does anyone know how I'd test in rspec a controller from a subdomain? I need to test using a URL like admin.localhost. Currently it seems to be localhost, but any idea how to override this?
03:53 <+hassox_> are you using dispatch_to?
03:53 <+hassox_> cbarrie ^^
03:53 <+cbarrie> yup.
03:54 <+cbarrie> dispatch_to(Controller, :index, :data => packet)
03:54 <+hassox_> try something like
03:55 <+hassox_> dispatch_to(Controller, :index, :data => packet, :http_host => "admin.localhost")
03:57 <+AndrewO> is there anyway to try out a plugin on an application without having to gem or install it?
03:59 <+AndrewO> i.e. what's the workflow like for plugin development?
04:00 <+AndrewO> ... after testing, but before releasing or packaging
04:02 <+cbarrie> hmm, not that just puts a http_host variable in my params, nothing in the request headers change. request.env["HTTP_HOST"] remains the same. localhost
04:07 <+myobie> AndrewO: you can put it in gems if you don't want it installed (or are still developing it)
04:11 <+AndrewO> myobie: oh, so it doesn't need to actually be a gem to be in gems?
04:13 <+myobie> AndrewO: it seems that if it has a lib directory, it should be loaded up (cause then it really is a gem, just not all the way installed)
04:14 <+cbarrie> Hmm with rails it would seem I can before(:each){ @request.host="admin.localhost" } but no @request in Merb? Is this correct?
04:18 <+AndrewO> hmmm -- I'm getting this error on a very-flat app: undefined method `match' for Merb::Router:Class
04:18 <+AndrewO> flat and regular work fine
04:19 <+AndrewO> myobie: thanks I'll give that at try
04:20 <+argv[]> AndrewO you need to initiate your app with merb -I <appname>
04:21 <+AndrewO> argv[]: great -- works now
04:24 <+cbarrie> Ahh it looks like the FakeRequest class might be my saviour. :)
04:49 <+cbarrie> FYI: Merb::Test::FakeRequest::DEFAULT_ENV["SERVER_NAME"] = "admin.localhost" will do the trick
04:56 <+meekish> Has ezmobius been in here lately?
05:04 <+cbarrie> yup he left 30 mins ago
05:04 <+cbarrie> meekish^^
05:05 <+meekish> That's ok. I was going to ask if I could put up the documentation page, but it looks he (or someone else) already did it
05:06 <+meekish> Check it out! http://www.merbivore.com/documentation.html
05:06 <+argv[]> cute
05:07 <+argv[]> renders weird in my browser
05:13 <+cbarrie> kewl. Eye Candy!
05:13 <+meekish> What browser do you have?
05:15 <+meekish> argv[]?
05:16 <+argv[]> meekish currently ie7. its nothing major, but the green highlight in the left menu kind of overlaps the items above/below it
05:16 <+argv[]> by like, 1px, heh
05:17 <+meekish> Thanks. I'll take a look at it.
05:18 <+argv[]> also theres some rdoc weirdness in http://www.merbivore.com/documentation/merb-more/head/merb-action-args/index.html
05:18 <+argv[]> you see the {{[ class Foo < ... outside the code block
05:19 <+meekish> Yeah, I know about that. It's because the README files aren't RDOC formatted
05:19 <+argv[]> ah
05:20 <+meekish> hey wycats, do you think you could rustle me up a github invite so I can clean up the README files?
05:23 <+nod> sorry to ask such a simple question, but i'm wondering which library I use to convert a datetime object into something like "2 hours ago"
05:23 <+nod> i'm finding all kinds of conversion type hits in google, but not really what i'm looking for
05:23 <+amoeba> nod: Time class
05:24 <+amoeba> (Time.now - yourdatetime) => num seconds different
05:24 <+amoeba> (as a float)
05:24 <+nod> well, yeah. i can get that via epoch
05:24 <+nod> i'm mainly looking for a shortcut function
05:24 <+amoeba> There's no such thing as a free lunch!
05:24 <+amoeba> (I don't know of something that does what you want)
05:25 <+owen1> which one is the current documentation - http://merb.rubyforge.org/files/README.html or http://merbivore.com/documentation/merb-core/0.9.0/ ?
05:25 <+nod> amoeba: haha
05:25 <+meekish> owen1: the docs at merbivore.com
05:25 <+meekish> Did you find a link to the old docs?
05:26 <+nod> amoeba: http://www.djangoproject.com/documentation/templates/#timesince <-- similar to django's timesince filter
05:26 <+amoeba> Gotcha.
05:26 <+owen1> meekish: i googled because i could'nt find the readme file in the new version.
05:27 <+nod> i swore i'd seen one, but now i just can't find it again
05:27 <+meekish> nod: I think I've seen one too... I'll look around a bit
05:28 <+amoeba> http://api.rubyonrails.org/classes/ActionView/Helpers/DateHelper.html#M001006
05:28 <+amoeba> That oughta do ya. I think.
05:34 <+meekish> nod: Oh right, that would work; I just assumed you were looking for a non-rails alternative.
05:35 <+nod> i am, actually, but i can make that work.
05:35 <+nod> amoeba: thanks!
05:35 <+amoeba> Np. Glad I could help.
05:35 <+amoeba> I wrote my own last night, coincidentally enough.
05:35 <+nod> ha!!
05:35 <+nod> great timing :)
05:35 <+amoeba> Handles seconds->years and pluralization.
05:35 <+nod> btw, nice
05:36 <+nod> err nice
05:36 <+amoeba> hehe
05:36 <+amoeba> I want to find a way to write it smarter than mine. I used cases. The Django implementation uses an array of tuples.
05:38 <+nod> the one you pasted uses cases also
05:38 <+amoeba> Yeah.
05:39 <+owen1> meekish: most of the links in the new documentation doesn't work..
05:39 <+amoeba> http://djangoapi.quamquam.org/trunk/django.utils.timesince-pysrc.html#timesince
05:39 <+owen1> meekish: 404 not found (nginx)
05:40 <+meekish> Crap. I'll fix it right now. The only one I'm seeing not work is merb-core-0.9.0
05:40 <+meekish> Are you having issues with any others?
05:41 <+nod> the django one does stuff like "5 days, 8 hours ago" though. which is kind of nice
05:41 <+nod> maybe i'll just port it directly over
05:42 <+meekish> Cool. You should make a gem
05:42 <+owen1> meekish: that's also where i am. i didn't know about any other docs...
05:43 <+meekish> http://merbivore.com/documentation.html
05:43 <+meekish> Where did you find the link to that one?
05:43 <+meekish> http://merbivore.com/documentation/merb-core/0.9.0/
05:43 <+meekish> ^^
05:45 <+meekish> Was that on Google too?
05:46 <+owen1> meekish: ok, 0.9.0 not working and git head is ok.
05:46 <+meekish> http://merbivore.com/documentation/merb-core/0.9.0/index.html
05:46 <+meekish> or http://merbivore.com/documentation/merb-core/0.9.0/
05:46 <+meekish> should be working now
05:47 <+owen1> meekish: both of the links are here : http://merbivore.com/documentation.html
05:47 <+meekish> Right, but you said that you didn't know about the other docs, so I assumed you had found a direct link to 0.9.0 docs somewhere else
05:49 <+owen1> meekish: my bad. i guess i saw 2 links and choose the 0.9.0
05:49 <+meekish> ahh
05:55 <+meekish> Thanks for the heads up.
05:59 <+owen1> meekish: it will be nice to have a short list of the features/functionality of merb core and merb more.
06:00 <+owen1> meekish: so i will know if core is enough for my needs.
06:00 <+argv[]> merb-core is controller routing templates afaik
06:00 <+meekish> I agree. I sat down on Monday to start learning Merb and realized that the RDOCs on Rubyforge were out of date, so I three the new template together, showed it to Ezra, and voila
06:02 <+meekish> typo: *I threw the new*
06:02 <+owen1> meekish: well done. it's a good start.
06:03 <+meekish> Thanks. I e-mailed Chris Wranstrath to request a github invite so I can start cleaning up the README files
06:03 <+amoeba> meekish: You threw that together? Awesome job and thanks.
06:04 <+meekish> Well, I didn't throw it all together. The guy that made railsbrain.com released the RDOC template he used http://rubyforge.org/projects/jaxdoc
06:05 <+amoeba> ah, I thought it looked familiar
06:05 <+meekish> I just customized the stylesheet to make it more merbish and wrote some scripts to autogenerate the RDOCs from git head daily
06:05 <+amoeba> But I appreicate you putting that up.
06:05 <+meekish> If you mouse over 'usage tips' in the top right corner you'll see jaxdoc referenced there
06:06 <+meekish> I suppose I should e-mail him to let him know it's being used...
06:06 <+meekish> off-topic: what's the syntax to express an action in irc?
06:07 <+meekish> i.e. 'meekish heads off to e-mail Brian Chamberlain'
06:07 <+amoeba> Some clients use /me {text}
06:07 <+amoeba> I've seen /em too.
06:07 * meekish heads off to e-mail Brian Chamberlain
06:07 <+meekish> aha!
06:07 * amoeba a'splodes head
06:07 <+meekish> i've always wondered...
06:08 * owen1 learning merx
06:11 <+owen1> btw, someone upload this chat to google groups on a daily basis.
06:16 <+jdempsey> has anyone played with the merb attachment_fu port?
06:18 <+meekish> I didn't know there was one. Sweet sauce
06:19 <+jdempsey> i'm not sure of the state
06:19 <+jdempsey> but its something like merbment_fu
06:19 <+jdempsey> lemme see...
06:19 <+meekish> haha, that's quite a name
06:20 <+jdempsey> hehe yea thats wrong but lemme see if i can find the right one
06:20 * argv[] wonders why his merb stacktrace has active_support in it
06:21 <+jdempsey> attachmerb_fu is the name meekish
06:21 <+jdempsey> not sure if its actively being developed still, etc
06:21 <+jdempsey> hehe yea strange argv :-)
06:22 <+argv[]> coming all the way from merb-core too
06:22 <+jdempsey> huh
06:22 <+jdempsey> meekish: checks it out: http://files.rubyforge.vm.bytemark.co.uk/merb-plugins/
06:24 <+meekish> Last Modified: Jan 10, 08
06:24 <+meekish> sound promising, I suppose?
06:25 <+jhancock69> argv[]: I', not certain, bu tI think if you use something like "link_to" and _dont_ specify to include merb-assests, that merb will try to use active_support.
06:25 <+argv[]> this is on a completely fresh merb-gen'd app
06:25 <+argv[]> i didnt even touch the config dir yet
06:25 <+jhancock69> hmmm...
06:25 <+jdempsey> meekish: its a little weird
06:25 <+jdempsey> you have to untar it
06:25 <+jdempsey> then gunzip etc
06:25 <+jhancock69> argv[]: are you using merb 0.9?
06:26 <+jdempsey> but eventually it looks like a gem
06:26 <+argv[]> i rake installed from git, cause im making/testing some changes
06:26 <+jdempsey> argv[]: exactly, if you haven't added in merb-assets, then maybe that's it
06:27 <+jhancock69> argv[]: in config/inint.rb add these two lines: require 'merb-assets' and dependency "merb-assets"
06:27 <+argv[]> hmm
06:27 <+sintaxi> I will be giving this a go this weekend http://merb-plugins.rubyforge.org/svn/attachmerb_fu/
06:27 <+jhancock69> argv[]: its my understanding that you should only need the dependency statement. but as of a few days ago, that wasn't working correct and you needed both statements.
06:27 <+argv[]> well, it shouldnt be blowing up with activesupport even if it was using it, no?
06:28 <+meekish> jdempsey: bummer. makes you wonder about the code; have you looked at the code at all?
06:28 <+jdempsey> looking at it right now
06:28 <+jdempsey> svn co http://merb-plugins.rubyforge.org/svn/attachmerb_fu
06:28 <+sintaxi> the readme says its been used with the mini-magick and file system storage.
06:28 <+jdempsey> may not be so bad
06:28 <+jhancock69> well, if its trying to load it, it needs to be loadable. but it probably hsould blow up. try doing the load of merb-assets and see if the trouble goes away.
06:28 <+jdempsey> yea
06:28 <+jdempsey> i might put it up on github so people can play with it easier
06:29 <+sintaxi> I will be trying to get it going with ImageScience and most likely S3
06:29 <+argv[]> i need to get on github
06:30 <+sintaxi> argv[]: im dying to get on too
06:35 <+Olad> hey gals
06:35 <+Olad> :-)
06:35 <+meekish> jdempsey: Have you heard any rumor of githubs rates when it goes public?
06:36 <+jdempsey> nah, not a peep
06:36 <+jdempsey> fyi
06:36 <+jdempsey> git://github.com/jackdempsey/attachmerb_fu.git
06:38 <+Olad> i just signed up @ github. waiting for invite :-)
06:38 <+jdempsey> yeah might take a bit olad
06:38 <+jdempsey> i had signed up last week
06:38 <+jdempsey> no invite
06:38 <+jdempsey> finally got someone to invite me
06:38 <+jdempsey> so i gots in :-)
06:38 <+Olad> oh, can you invite me? *SHY*
06:39 <+meekish> Yeah, I gots me some connections so I's hopin' for an expedited invite :)
06:39 <+Olad> :-)
06:39 <+jdempsey> hehe, yea i don't have any invites yet
06:39 <+jdempsey> i'm not sure how long it takes to get them
06:39 <+jdempsey> but when i do, i'll toss a couple around here
06:40 <+meekish> After all, somebody really needs to make those READMEs rdoc compatible
06:40 * meekish raises hand
06:40 <+jdempsey> heh
06:40 <+kamal_fariz> i got an invite from ezra last week, but i don't have any invites to give out
06:40 * Olad wants to get an invite too
06:40 <+jdempsey> so meekish was it you that built this: http://www.merbivore.com/documentation/merb-core/0.9.0/index.html
06:40 * argv[] tries to get yard working with merb
06:40 * Olad pokes the guys behind the github
06:41 <+argv[]> generate betta docs
06:41 <+meekish> Kind of. I used the jaxdoc RDOC template and merbivored it
06:41 <+meekish> I posted it at merbbrain.com monday night
06:41 <+meekish> Ezra liked so he gave me a shell account on the merbivore.com
06:41 <+meekish> server
06:41 <+meekish> the rest is history
06:42 <+meekish> http://rubyforge.org/projects/jaxdoc
06:42 <+meekish> ^^ an extraction from railsbrain.com
06:44 <+jdempsey> very cool
06:44 <+jdempsey> nice was going to say
06:44 <+jdempsey> someone needs to do that
06:45 <+meekish> Yep. I bought the 'Meet Merb' PeepCode this weekend and went looking for some up-to-date RDOCs
06:46 <+meekish> Now we have some :)
06:46 <+jdempsey> awesome
06:46 <+kamal_fariz> there's a new peepcode episode on merb?
06:46 <+kamal_fariz> cool
06:46 <+meekish> It's a PDF
06:46 <+jdempsey> there's a pdf on it
06:47 <+jdempsey> with a screencast to come
06:47 <+meekish> Even better, imho
06:47 <+kamal_fariz> oh
06:47 <+meekish> ^^ the PDF
06:47 <+meekish> I think that PDFs are quite a bit more useful for later reference
06:47 <+jdempsey> i love githubs main page
06:47 <+amoeba> Does anyone have any experience overriding ActiveRecord's default ID field with something else and how that relates to RESTful routes?
06:47 <+jdempsey> "git repository hosting"
06:48 <+jdempsey> "no longer a pain in the ass"
06:48 <+jdempsey> amoeba: in what way?
06:48 <+jdempsey> answer might be "yes" but just curious what you're trying to do
06:48 <+meekish> for real, I think 'ass' is Chris' favorite word
06:48 <+meekish> to_param?
06:49 <+meekish> Old post, but might be what you're looking for: http://www.notsostupid.com/blog/2006/07/07/urls-on-rails/
06:50 <+amoeba> I'm using a GUID as the primary key for a table.
06:50 <+amoeba> And not getting everything working together yet.
06:51 <+meekish> Oh, I was way off :)
06:52 <+amoeba> Thanks any way. I'm 75% of the way there.
06:53 <+mtodd> meekish: check your PMs
06:54 <+meekish> I responded to your second message. Did you not receive it?
06:54 <+mtodd> I didn't... odd
06:54 <+jdempsey> what else do you need to do amoeba ?
06:54 <+sintaxi> amoeba: you dont have to put in the id but you will have to freplace your finds with find_by_param
06:55 <+meekish> That is odd. I just sent you another PM
06:55 <+meekish> did you get it?
06:55 <+mtodd> nope. :(
06:55 <+meekish> hmm...
06:56 <+meekish> here's my addy:
06:56 <+amoeba> Would it be reasonable to keep with the naming :id for the ID but have it not be the usual unsigned INT?
06:56 <+meekish> jedhurt
06:56 <+meekish> at
06:56 <+meekish> cableone.net
06:56 <+meekish> Ahh, I probably need to identify my self to the NickServ
06:56 <+meekish> just a sec
06:57 <+mtodd> k
06:58 <+amoeba> jdempsey: url() to work with my GUIDs
06:58 <+jdempsey> ah
06:58 <+jdempsey> so yeah, defining to_param on the model should do it
06:58 <+amoeba> thanks
06:58 <+jdempsey> def to_param; self.guid; end
06:58 <+jdempsey> something like that
06:58 <+jdempsey> dont' really need the self either...
06:59 <+amoeba> That works.
06:59 <+amoeba> Sweet (sauce).
07:01 <+meekish> Oh, that's classic: "Hardcore Forking Action"
07:01 <+amoeba> Awesome
07:05 <+amoeba> Good deal. Overriding AR's PK is easy!
07:07 <+jdempsey> hehe
07:07 <+jdempsey> yep!
07:08 <+amoeba> I speak too soon ... update_attributes isn't a happy camper ... Looking through source.
07:18 <+amoeba> Hrm. I don't see a way AR has supplied support for updating non-ID-carrying rows. Only solution appears to be patching in.
07:20 <+meekish> Time to hit the sack. G'night all
07:20 <+amoeba> night
07:23 <+amoeba> Nevermind. It's easier.
07:53 <+nagash> anyone here on windows?
07:54 <+amoeba> I have access to one.
08:13 <+amoeba> Is there a way to set params[] on a future page that doesn't involve a form?
08:20 <+nagash> http://merb.lighthouseapp.com/projects/7433-merb-core/tickets/151-ie-accept-header-resources-problem
08:21 <+nagash> amoeba: use session, i guess
08:21 <+amoeba> Figured. Thanks.
08:21 <+nagash> amoeba: and a before filter where necessary to merge session[:params] into params ?
08:21 <+nagash> that way u can use a form, or not
08:21 <+nagash> form or session
08:21 <+amoeba> Yeah.
08:22 <+nagash> amoeba: you could also use a query string at end of URL
08:22 <+nagash> amoeba: it depends what you are actually trying to do
08:22 <+amoeba> Hehe, yes, it does.
08:23 <+amoeba> I'm letting users go from /show to /new, borrowing the content of the object used in /show for use in their /new object.
08:24 <+nagash> amoeba: def new; @object = Object[params[:id]] || Object.new; end ?
08:24 <+nagash> something along those lines should work
08:25 <+nagash> just pass the id in the get request to /new
08:25 <+amoeba> Object[params[:id]], do you mean Object.find?
08:25 <+nagash> amoeba: depends if ur using AR or DM :)
08:25 <+nagash> if it's AR you would want to do find_by_id
08:25 <+amoeba> I suppose it would.
08:25 <+nagash> otherwise it will crap itself
08:26 <+amoeba> I don't want Object/new/:id though.
08:26 <+nagash> amoeba: well, you could always do something like object/1/dup
08:26 <+nagash> or something, as a non-restful action
08:27 <+amoeba> Hrm. I guess new/:id actually works the best for me
08:27 <+amoeba> Just not sure if it's a very descriptive URI
08:28 <+nagash> amoeba: as a general rule, I only stick to the RESTful stuff for API things
08:28 <+nagash> if it's an action which only the browser is going to access, i'm not too fussed about using non-standard ones
08:28 <+argv[]> thats how it should be
08:29 <+amoeba> In a sense, the new/:id route would be useful from an API stand so I'll just go with it.
08:29 <+argv[]> wow, yard actually parses merb-core and merb-more
08:30 <+ezmobius> yard?
08:30 <+argv[]> ezmobius http://yard.soen.ca
08:30 <+argv[]> havent updated the page in a year
08:30 <+nagash> ezmobius: this sucks http://merb.lighthouseapp.com/projects/7433-merb-core/tickets/151-ie-accept-header-resources-problem
08:31 <+nagash> ezmobius: i'm having to force everything to .html atm and not use resources (at least when serving via mongrel)
08:31 <+argv[]> ezmobius it should be noted that you guys have an uncannily similar way of listing return types in your docs to what yard supports
08:35 <+ezmobius> cool
08:36 <+ezmobius> nagash: thats a weid error. why would changing the merb router file change what accept header is sent by IE?
08:36 <+nagash> ezmobius: i have no idea (i didn't test it myself)
08:36 <+nagash> ezmobius: i was fiddling with it the other day
08:36 <+nagash> when you use the link, it doesn't work
08:36 <+nagash> but if you refresh that page after using the link
08:36 <+nagash> it works fine
08:39 <+nagash> ezmobius: it's like using links in IE sends a different accept header, then just typing in the URL
08:39 <+nagash> ezmobius: maybe see how rails handles it?
08:39 <+ezmobius> hmm
08:40 <+nagash> ezmobius: as i said, i didnt test it just then - but when i used r.resources :accepts and got a friend to hit it with IE, logs gave 406
08:40 <+ezmobius> doesn't seem like it could be that. how are you dunping the headers?
08:40 <+nagash> ezmobius: request.env['HTTP_ACCEPT']
08:40 <+nagash> to Merb.logger
08:40 <+ezmobius> so it's only if you name the resource :accepts?
08:40 <+ezmobius> or any resource?
08:40 <+nagash> ezmobius: or use a link
08:40 <+nagash> any resource
08:41 <+nagash> ezmobius: i had the same problem a few days ago with a simple app i was working on
08:41 <+ezmobius> hmm shit. i dont have ie
08:41 <+nagash> ezmobius: i'll do some more extensive testing next week, when i have a windows box available
08:41 <+ezmobius> cool
08:41 <+nagash> ezmobius: currently in the process of moving (sort of)
08:42 <+nagash> ezmobius: i imagine 7.0 works fine
08:43 <+nagash> ezmobius: as i mentioned in the ticket, i wouldnt be surprised if it's a mongrel problem. well, not so much a mongrel problem, but i wouldn't be surprised if normal web servers munge IE's accept headers into something "better"
09:57 <+_martinS_> i'm having trouble getting haml working on 0.9 - views is named file.html.haml, merb-haml 0.9 gem is installed, haml 1.8.1 is installed
09:58 <+_martinS_> i'm getting a Merb::ControllerExceptions::NotAcceptable page
10:02 <+pointcom> _martinS_: And what the console says ?
10:03 <+_martinS_> pointcom: Merb::ControllerExceptions::NotAcceptable - (Merb::ControllerExceptions::NotAcceptable)
10:03 <+pointcom> and there is no StackTrace after That ?
10:03 <+_martinS_> yeah, but i don't want to flood
10:04 <+_martinS_> pointcom: /usr/local/lib/ruby/gems/1.8/gems/merb-core-0.9.0/lib/merb-core/controller/mixins/render.rb:140:in `display'
10:04 <+pointcom> you can paste your log on Pastie (http://pastie.caboo.se)
10:04 <+_martinS_> will do
10:05 <+_martinS_> pointcom: http://pastie.caboo.se/155269
10:07 <+pointcom> it's a litlle weird that your :format param is nil
10:07 <+pointcom> {:format=>nil, :action=>"index", :controller=>"horses"}
10:08 <+_martinS_> pointcom: controller code @ http://pastie.caboo.se/155270
10:11 <+pointcom> and what happens when you call the following url in your browser : http://localhost:4000/horses.html
10:11 <+pointcom> ?
10:13 <+_martinS_> pointcom: http://img.skitch.com/20080221-qbn7y4c7m1wgbhej8dqruup3cf.jpg
10:21 <+pointcom> i just see the merb code who implements render method
10:21 <+pointcom> "Figure out what to transform and raise NotAcceptable unless there's a transform method assigned"
10:24 <+_martinS_> In the docs for the render method:
10:24 <+_martinS_> "Looks for views/controllername/actionname.* and renders the template with the proper engine based on its file extension."
10:24 <+_martinS_> which in my case is 'index.html.haml'
10:28 <+pointcom> i guess that :fomat is nil. So it try to find the template index.nil.haml
10:28 <+pointcom> but i'm not sure
10:31 <+pointcom> Just a little test : Try to replace "display @horses" by "display @horses, :format => 'html'"
10:33 <+_martinS_> same error, but format not nil : from the backtrace - Routed to: {:action=>"index", :controller=>"horses"}
10:37 <+pointcom> have changes something in your router.rb ?
10:37 <+pointcom> changed*
10:37 <+pointcom> have you changed something in your router.rb ?
10:37 <+pointcom> :)
10:38 <+_martinS_> i added r.resources :horses
10:39 <+pointcom> Ok normal
10:42 <+pointcom> question : You added "dependency merb-haml" in your config/init.rb file ?
10:45 <+_martinS_> pointcom: : i think that's it - i'm now getting haml errors about markup
10:45 <+pointcom> :)
10:45 <+pointcom> Whitespace problem ?
10:45 <+_martinS_> yeah
10:46 * _martinS_ owes pointcom a beer for the help
10:47 <+pointcom> ;)
11:17 <+Malesca> This is really weird. Have a merb 0.5 app that uses net/http and open-uri to get some stuff from delicious. If I deploy it (to another local machine) with capistrano (which mainly does a git clone and then "merb -e production"), the net stuff breaks with "getaddrinfo: Temporary failure in name resolution".
11:17 <+Malesca> If I script/stop_merb and then do "merb -e production" again, it works fine. If I use an IP address instead of "del.icio.us", it works after cap:ing. So weird though :/ Any ideas?
13:12 <+Jellybob> Is there a guide anywhere to getting merb-core/merb-more running?
13:43 <+myobie> when a template is rendered in the production environment, it's cached as a method?
13:48 <+Jellybob> I'm trying to use test::unit with merb-core, and it's not generating a test_helper - I assume that shouldn't be the case?
13:53 <+Skip> you have to manually create one
13:58 <+hassox> Jellybob: there should be a test_helper generated when you generate your app
13:58 <+hassox> it's in the generator
13:59 <+Jellybob> hassox: I just did a merb-gen . and didn't get test_helper, or a test directory
13:59 <+hassox> hmmm
13:59 <+Jellybob> hassox: Is there something special I need to do to make it use test::unit be default, instead of rspec?
13:59 <+hassox> thinking there must be
13:59 <+hassox> I don't actually use test:unit ;)
14:00 <+Jellybob> I figured that when I changed my test plugin it should create the helper along with the test directory
14:00 <+hassox> it's not setup like that unfortnately...
14:01 <+hassox> atm
14:01 <+Jellybob> hassox: That kinda sucks, since I have no idea what should be in my test_helper at the moment
14:01 <+Jellybob> Open a ticket?
14:02 <+hassox> fear not
14:02 <+hassox> :)
14:02 <+hassox> merb-gen my_app --test
14:02 <+Jellybob> Cunning :P
14:02 <+hassox> that will set the option to generate test_helper
14:02 <+Jellybob> Lemme give that a try
14:02 * hassox just found it
14:03 <+hassox> Jellybob: you may find test::unit a little...
14:03 <+hassox> rough around the edges in merb
14:03 <+Jellybob> Heh - I'll try to patch what I can as I run into it then
14:03 <+hassox> not many that I know of use it... rspec is usually the preferred option, so it is prolly a bit better supported
14:04 <+hassox> yeah.. just a heads up ;)
14:04 <+Jellybob> RSpec is ok, but I want to have a play with shoulda at the same time
14:04 <+hassox> is that going to work with merb?
14:04 <+Skip> where is that --test option documented/
14:04 <+hassox> it's not atm
14:05 <+Skip> woulda saved me a few hours hassle
14:05 * hassox went hunting through the sauce
14:05 <+hassox> :(
14:05 <+Jellybob> hassox: The ActiveRecord stuff should work with it
14:05 <+hassox> Skip: a doc patch wouldn't go astray ;
14:05 <+hassox> ;)
14:47 <+langenberg> Hi Guys, anyone around?
14:49 <+langenberg> What's the fastes way to get some SQL data? Datamapper, Sequel or just use the MySQL gem for some raw data?
14:50 <+unfo-> google "benchmark datamapper sequel" ?
14:50 <+unfo-> or benchmark it yourself?-)
14:50 <+rds> langenberg: /path/to/mysql/bin/mysql
14:50 <+langenberg> I acutally want to discuss a bit about the options I've got.
14:50 <+rds> That's the fastest way to get raw sql data.
14:51 <+langenberg> I wanted to go for the mysql gem, but I'm not sure if that's a good path to go.
14:52 <+langenberg> It's like this, I want to create an assets server so users can upload files. Users won't upload them via a browser but through an external tool. Since there can be a large burst of file uploads I wanted to seperate this to another webserver, right?
14:53 <+langenberg> The main application is a Rails app, and it makes sense to do file uploading with merb-core, right?
14:54 <+langenberg> So basically I'm planning to create a light and fast webservice that just responds to PUT and DELETE requests. GET request will be directly served by Nginx.
14:57 <+langenberg> Minor thing is that I need to do authentication based on the path a file is PUT to. PUT /assets/john and PUT /assets/mary require a different HTTP Basic auth. That means I need to connect to the DB of the main Rails app to fetch a password for that user and do the authentication.
15:00 <+langenberg> I guess it doesn't make sense anymore ;)
15:01 <+langenberg> rds: A wrapper around the mysql bin is faster than the C functions used by the mysql gem?
15:03 <+lifo> langenberg: if you're suing AR, connection.select_all/execute() would be the fastest way
15:04 <+langenberg> Nah, I'm going to drop AR.
15:04 <+lifo> Well, then you should be able to figure all these out by yourself ;)
15:05 <+langenberg> Yeah I'm, but I tend to feel uncertain right before the start and than hit an IRC chan to discuss and brainstorm about ideas. ;)
15:06 <+lifo> then /path/to/mysql/bin/mysql
15:07 <+langenberg> Why not the MySQL gem?
15:07 <+langenberg> It basically calls the same C functions as the mysql bin, doesn't it?
15:07 <+lifo> yeah
15:07 <+lifo> but it's compatible with all versions of mysql I suppose
15:08 <+lifo> mysql 5.x c api has a lot of new features n improvements
15:08 <+lifo> in case you really care about "speed"
15:09 <+lifo> Using DM instead of AR edge wont make a lot of diff
15:11 <+langenberg> It doesn't? Wow, AR must have had some significant improvements or DM must have gone bad.
15:12 <+lifo> AR had a lot of perf. improvements in edge
15:12 <+lifo> Point is, dont go jump to any solution without benchmarking *for your usage*
15:20 <+langenberg> --very-flat :D
15:22 <+langenberg> Suits me :)
16:00 <+langenberg> Is it still posible to define a method with arguments in the controller?
16:00 <+langenberg> merb-core-0.9 just threw an error to me.
16:02 <+langenberg> wrong number of arguments (0 for 1) - (ArgumentError)
16:02 <+langenberg> odd
16:03 <+langenberg> params[:foo] returns my value, but I can do: def index(foo). That worked, right?
16:17 <+benburkert> anyone have an .autotest file working with growl for the new version of ZenTest?
16:17 <+nctx> langenberg: have to added the merb-action-args dependency in your init.rb
16:18 <+langenberg> ah sure
16:18 <+nctx> and you've got merb-more installed?
16:19 <+langenberg> Nope
16:19 <+nctx> merb-action-args is part of merb-more.
16:20 <+langenberg> can I use just the parts that I need from merb-more, or do I need to pull in the whole lib?
16:22 <+nctx> I think there is a merb-action-args gem you can use, it gets installed as part of merb-more. I tend to install merb-more and that brings down all the gems, then I add the dependency for merb-action-args.
16:24 <+langenberg> What do you mean by adding a dependency? Adding an entry to Merb::Config?
16:36 <+jdempsey> langenberg: what stuff do you want in merb-more?
16:37 <+jdempsey> i'd guess you need the whole merb-more lib...
16:37 <+langenberg> jdempsey: I've installed merb-more now.
16:37 <+langenberg> jdempsey: I've generated a very-flat app. Now I'm wondering how to get the merb-action-args and class reloading working.
16:37 <+langenberg> Would that be possible?
16:37 <+bryanl> jdempsey, are you patching back to merb-core yet?
16:38 <+jdempsey> bryanl: trying to...i've got a huuuuuge patch ready for pulling...
16:39 <+bryanl> jdempsey, what does it do?
16:39 <+jdempsey> http://merb.lighthouseapp.com/projects/7433/tickets/149-small-typo-byy-in-406-error-template
16:39 <+jdempsey> :-)
16:39 <+jdempsey> (finally got a github account, just starting off slowly to make sure i get the process down correctly...)
16:39 <+nctx> add a dependency in init.rb for merb-action-args e.g. dependency 'merb-action-args' :)
16:40 <+langenberg> doh :P. How should I know there is a dependency method.
16:40 <+langenberg> Is it possible to retreive a list of usable dependencies?
16:41 <+jdempsey> also, for those interested, i grabbed the source for attachmerb_fu from svn and created a git repos for it:
16:41 <+jdempsey> http://github.com/jackdempsey/attachmerb_fu/tree/master
16:41 <+landcruiser> landenberg: for class reloading, you need to make sure your controllers are added to the load path (eg. Merb.push_path(:controllers, Merb.root))
16:41 <+jdempsey> not sure if the original owner knows git, wants to keep contributing, etc etc, but i figured i'd at least make this available for those interested
16:42 <+langenberg> landcruiser: well I've got everything in a singel file now.
16:42 <+langenberg> single*
16:42 <+langenberg> app_name/app_name.rb
16:43 <+landcruiser> langenberg: ya, it's the only workaround that I've figured out so far. Merb.push_path(:controllers, Merb.root) will pickup *.rb files in the root directory, and make reloading work
16:44 <+langenberg> thanks landcruiser works fine
16:44 <+landcruiser> langenberg: np, if you figure out another way, let me know
16:47 <+langenberg> landcruiser: I'll
16:50 <+camilo> is there an activesupport like gem in merb-more ?
16:51 <+neosiris_> join rctech
16:52 <+neosiris_> sorry
16:57 <+hcatlin> hey merbites
16:57 <+hcatlin> its hampton of haml infamy
16:57 <+jdempsey> sup hcatlin
16:57 <+hcatlin> and i wanted to pimp that aerly-bird registration is open for RubyFringe
16:57 <+hcatlin> early*
16:57 <+hcatlin> (aerly would be good too)
16:57 <+jdempsey> ah yes
16:57 <+hcatlin> which means its cheaper
16:57 <+hcatlin> the spots are running out
16:57 <+hcatlin> (we could only budget so many at that price)
16:58 <+hcatlin> its the first-ever merb highlighting conference
16:58 <+hcatlin> lots of the talks will be about merb and its corollary technologies
16:58 <+jdempsey> looks like its gonna be great
16:58 <+hcatlin> and i want the peeps in this room to be there over lamer groups of people
16:58 <+jdempsey> oh i'm sure you say that to all the rooms
16:58 <+jdempsey> :-D
16:59 <+hcatlin> hahaha
16:59 <+hcatlin> not really... :P
16:59 <+hcatlin> haven't said it anywhere else
16:59 <+hcatlin> its not a cheap conference, but all of the money is going into you guys having a great time
16:59 <+hcatlin> we aren't really planning on a profit at all
16:59 <+hcatlin> and we aren't taking sponsors
17:00 <+hcatlin> so, if you are tired of supporting boring conferences with huge profit margins and skimpy amounts of fun....
17:00 <+hcatlin> sign up!
17:06 <+ecin> hcatlin: Are you guaranteeing the girlfriends/boyfriends will be well taken care of?
17:06 <+hcatlin> yeah, its an extra ticket
17:06 <+hcatlin> not full price, obvs
17:06 <+hcatlin> we are still working out the details
17:06 <+hcatlin> but like, tours of the city and stuff with other partners
17:07 <+hcatlin> and i think it includes all the nighttime activities of the conference itself
17:07 <+hcatlin> any specific suggestions/questions about that should go to meg...@unspace.ca
17:07 <+Malesca> Linkage to spare others ;) http://rubyfringe.com/
17:07 <+hcatlin> whose arranging all of that
17:07 <+hcatlin> oh, hahahah
17:07 <+hcatlin> yeah, i should have linked
17:07 <+hcatlin> i suuuuck
17:08 <+hcatlin> who here has signup up already? and who plans on it? and who is undecided? and who is busy/not interested?
17:08 <+hcatlin> we are trying to plan numbers.
17:09 <+wmoxam> I haven't signed up yet
17:09 <+wmoxam> but I plan on it
17:09 <+wmoxam> I think Carsten will too
17:09 <+tooky_> i'm busy that weekend - and I'm not sure I'd be able to make from the UK - good luck with it though!
17:13 <+landcruiser> I'm having some issues with Merb::Config[:framework] and Merb.load_paths
17:13 <+landcruiser> Merb::Config[:framwork] = {}
17:14 <+landcruiser> But when I check Merb.load_paths, it still uses app/controllers, app/models, etc...
17:14 <+noodlesinmysanda> I'm thinking of going.. just gotta try and work out the funds to get to canada...
17:15 <+hcatlin> landcruiser
17:15 <+hcatlin> that's totally a patch i was working on
17:15 <+landcruiser> ahh, great!
17:15 <+hcatlin> there is a disconnect between config and the stuff set in the main Merb module
17:15 <+hcatlin> which is both lame and lame
17:15 <+hcatlin> it only gets copied on Merb.start
17:17 <+landcruiser> okay, cool. glad to know somebody's working on it :)
17:19 <+Tyler> Hi folk!
17:20 <+jdempsey> hcatlin: fwiw i'd certainly show up if it was closer...650 i could swing, but adding in airfare...just not something i can do out of my own pocket at the moment
17:20 <+jdempsey> which sucks cuz i think its going to be awesome...
17:22 <+Tyler> I've been looking for a framework to build a mental model service. Merb is looking more and more attractive.
17:22 <+hcatlin> what's a mental service model?
17:22 <+hcatlin> sorry
17:22 <+hcatlin> mental model service
17:25 <+Tyler> Basically it's a way to explain a thought process for how something works.
17:26 <+Tyler> It can be used from the simplest concept (say making a sandwich), to advanced models for things like understanding the social and functional aspects of attending a movie.
17:26 <+hcatlin> interesting.
17:26 <+jdempsey> sudo make me a sandwich?
17:26 <+jdempsey> ahem, sry, yes it does sound interesting
17:26 <+plaggypig> Tyler: like a map of the thought process?
17:26 * Tyler <3's XKCD.
17:28 <+Tyler> Sure plaggypig, one second and I'll pull up an example.
17:29 <+Tyler> http://www.ok-cancel.com/uploads/20050812_mentalmodel_sm.gif
17:30 <+plaggypig> Tyler: whats the point though?
17:30 <+Tyler> It can be used in a number of ways.
17:31 <+landcruiser> hcatlin: are you able to delete tickets on merb.lh?
17:31 <+Tyler> Improved project management, inventing new services by understanding how people do their jobs, etc.
17:31 <+hcatlin> nope
17:31 <+landcruiser> k
17:32 <+Tyler> It has plenty of uses plaggypig: digital products, such as internet
17:32 <+Tyler> applications; physical products with interactive functions,
17:32 <+Tyler> such as a watch; location-aware products, such as a phone, etc.
17:32 <+Tyler> Woops
17:32 <+plaggypig> Tyler: maybe if you could accurately map the thought process, but i don't think that you can - by consciously observing and recording your thoughts then aren't you altering the process?
17:33 <+plaggypig> maybe i misunderstand it
17:33 <+Tyler> Potentially, but that's where the service would need to be able to capture raw thoughts.
17:33 <+Tyler> Anywho, I have a meeting for 30 minutes. I'll be back though.
17:33 <+landcruiser> hcatlin: I'm sure I don't totally understand the problem, but it sure seems weird. I used Merb.push_path(:controllers, Merb.root) to get reloading to work, but when I inspect Merb.load_paths from within a controller action it shows :controller as having the app/controllers path!
17:38 <+nfresne> anyone use merb_helpers and merb-haml (v0.9)? I ran into a "undefined local variable or method `_buf' for #" error when using form_for in a haml view. I don't get that problem when i use erb instead. anyone else seen this?
17:38 <+jdempsey> nfresne: yep
17:38 <+jdempsey> its a known issue last i chatted with wycats
17:39 <+jdempsey> he's working on it tho
17:39 <+nfresne> jdempsey: thanks
17:39 <+jdempsey> np, i looked into it last night as well
17:39 <+jdempsey> the merb_helpers specs are all fubarred :-)
17:40 <+wieckkidd> well lookie there. it's flava flav himself
17:41 <+wieckkidd> you guys looking at merb for your project?
17:41 <+wieckkidd> jdempsey: ^^
17:42 <+jdempsey> hmm
17:42 <+jdempsey> which project is this?
17:42 <+jdempsey> ...i'm definitely looking at it for several projects
17:42 <+jdempsey> but not sure i get the flav reference :-)
17:42 <+jdempsey> anyway off to lunch bbiab
17:43 <+wieckkidd> it's brian
17:43 <+wieckkidd> the guy that used to sit across and 2 desks down
17:49 <+ShayArnett> nfresne: there was talk of a temporary fix of adding def _buf; "" end to your controller i think
17:50 <+nfresne> shayarnett: hmm ... ok ill check that out. thanks
17:50 <+amoeba> Not a fix.
17:50 <+ShayArnett> well yeah .. more of a hack
17:50 <+swhitt> a work-around
17:50 <+amoeba> I mean, it breaks the <form>
17:50 <+ShayArnett> oh
17:51 <+ShayArnett> i haven't given myself time to get hooked on haml .. so i still use erb
17:51 <+hcatlin> loser.
17:51 <+hcatlin> hahahhha
17:51 <+swhitt> what's wrong with erb?
17:51 * ShayArnett cries it's so much easier for me to read.... being used to starting at html for so long
17:53 <+nfresne> yeah i get no form tag output if i do that
17:53 <+amoeba> There's a good reason the helper is supposed to evaluate the buffer.
17:55 <+pimpmaster> HAML FTW!!!!!!
17:55 <+pimpmaster> only losers use ERB
17:55 <+ShayArnett> at least losers can push merb 0.9 apps to production :P
17:55 <+hcatlin> snap!
17:56 * ShayArnett runs
17:56 <+pimpmaster> Boooooo!!!!!
17:56 * pimpmaster throws tomatoes
17:56 <+amoeba> I use HAML for all things aside from forms. It's sweer.
17:56 <+pimpmaster> aside from forms?
17:57 <+pimpmaster> i use it for everything
17:57 <+amoeba> HAML doesn't do forms yet in Merb.
17:57 <+amoeba> (using merb_helpers's form_for)
17:57 <+pimpmaster> since when?
17:57 <+amoeba> For a few weeks.
17:57 <+pimpmaster> im on 0.5.2 and it works
17:57 <+amoeba> (or forever)
17:57 <+pimpmaster> ahh
17:57 <+pimpmaster> someone broke it
17:58 <+amoeba> Looks it.
17:58 <+kenphused> hey... what's up with all this chatter in IRC... merb contributors.. get busy...
17:58 * amoeba randomly patches merb-core
17:58 <+kenphused> lol
17:58 <+pimpmaster> kenphused: maybe they would work faster if they used Haml ;)
17:59 <+kenphused> double lol
18:01 <+kenphused> dorothy haml?
18:01 * kenphused chuckles
18:01 * lightnote_ just uses f'n html
18:01 <+pimpmaster> wow.. 80's flashback
18:02 <+lightnote_> ha and I only started coding a few years ago
18:02 <+foysavas> haha, i was just about to ask the status of HAML on Merb 0.9
18:03 <+foysavas> seems like the bug lives on
18:03 <+kenphused> i remember writing html w/ notepad on winbloze 95
18:03 <+pimpmaster> yikes
18:03 <+ShayArnett> kenphused: those days sucked
18:04 <+kenphused> ShayArnett: wErd
18:04 <+ShayArnett> but atleast repeating flaming backgrounds with white text over top was cool
18:04 <+jdempsey> yeah i know wycats is on the helpers thing, but its not a quick fix
18:04 <+kenphused> <sigh>
18:05 <+pimpmaster> <double sigh>
18:05 <+pimpmaster> wycats: take note ^^
18:05 * kenphused waxes nostalgic about the "good ole days" -- before this dynamic web stuff
18:05 <+ShayArnett> my only regret is that i haven't stuck with it all through these years.... keep taking small breaks doing other things and have let myself get way behind
18:05 <+ShayArnett> but i'm catching up so it's all good
18:06 <+pimpmaster> ShayArnett: same here
18:06 <+pimpmaster> it makes sense though
18:06 <+pimpmaster> web dev wasnt always this fun
18:06 <+pimpmaster> or fast
18:07 <+ShayArnett> yeah.. thats the part i don't regret
18:07 <+ShayArnett> smashing my face on my keyboard working on javascript browser detection during the we all suck balls and hate standards phase
18:07 <+pimpmaster> imagine having invested all your time in PHP
18:07 * pimpmaster shudders
18:07 <+ShayArnett> i'm glad i missed that
18:08 <+ShayArnett> lol i only ever did enough php to get by
18:08 <+ShayArnett> was always an as needed thing
18:09 <+kenphused> hey hey hey... i came from the php world
18:09 <+lightnote_> though I lost two jobs so far due to not knowing php
18:09 <+lightnote_> and trying to promote rails and merb
18:09 <+ShayArnett> kenphused: not that i hate it... i just never had time to get into it... always just got what i needed done and thats it
18:09 <+kenphused> pimpmaster: de donde es?
18:09 <+lightnote_> need mod ruby badly on shared
18:09 <+lightnote_> ShayArnett: same here
18:10 <+pimpmaster> kenphused: Brooklyn NY.. currently residing in Barcelona tho
18:10 <+Phoop> At this moment Im playing with Zend Framework, and Im pretty impressed..
18:10 <+kenphused> pimpmaster: nice.... how do i get one of those spain gigs?
18:10 <+pimpmaster> i got it by DJing, but for real $$$ work I still do biz with NY
18:11 <+kenphused> pimpmaster: wow... never would have thought dj'ing was exportable... congrats
18:11 <+pimpmaster> cheers
18:12 <+pimpmaster> Phoop: Zend is admittedly cool (for PHP)
18:12 <+Phoop> pimpmaster: It does things that I thought they weren't possible for PHP
18:12 <+Phoop> with PHP*
18:12 <+smerickson> can someone help me define a route using defer_to? here's what i'm currently doing: http://pastie.caboo.se/155489
18:14 <+foysavas> anyone know of any resources for using sphinx with merb?
18:17 <+lightnote_> I get a really weird error now in .9 for the file upload
18:17 <+lightnote_> undefined method `path'
18:18 <+lightnote_> FileUtils.mv( filetemp.path, bunny_path )
18:18 <+jdempsey> what kind of object is filetemp
18:18 <+lightnote_> it's like it passes the tempfile param but crashes there
18:18 <+jdempsey> good guess is that its somehow not what you expect and can't respond to .path
18:18 <+lightnote_> a jpg
18:18 <+jdempsey> (obvious but i'd do some inspecting on it)
18:19 <+jdempsey> yea but literally what class of object.....File......etc?
18:19 <+jodo> this is probably a long shot, but does anyone have a date_select helper? :\
18:19 <+lightnote_> I tried to use debugger to see the param in model
18:19 <+lightnote_> but no luck
18:19 <+jdempsey> ah ok
18:19 <+jdempsey> ah
18:19 <+lightnote_> in controller I can pull up the param
18:19 <+lightnote_> and it shows the path and temppath file
18:20 <+lightnote_> but once in model I just can't get debugger to do jack
18:20 <+jdempsey> smerickson: not sure what the error is there, but fwiw, you can clean things up by using /
18:20 <+jdempsey> remember that its overloaded to do things like
18:20 <+jdempsey> foo / bar / "here"
18:20 <+ShayArnett> lightnote_: just add a puts whatever.inspect where ever you want
18:20 <+smerickson> jdempsey: thanks for the tip
18:21 <+lightnote_> ShayArnett: in the model code it'self ?
18:21 <+ShayArnett> SURE
18:21 <+ShayArnett> whoops
18:21 <+ShayArnett> yeah anywhere you want to see something ... puts something.inspect or pp something ... i use those alot :D
18:21 <+jdempsey> +1 :)
18:22 <+lightnote_> alot of times I can't get debugger to fall into command line
18:22 <+ShayArnett> lightnote_: are you still trying to update your uploads for 0.9?
18:22 <+lightnote_> yes :D
18:23 <+ShayArnett> pastie your model and controller and i'll have a look when i get back from break
18:23 <+ShayArnett> i just finished an image uploader last night..
18:23 <+ShayArnett> brb
18:23 <+kenphused> jodo: merb_helpers has a class for date helpers, but it is empty right now...
18:23 <+lightnote_> cool
18:24 <+jodo> kenphused: yea i kno :(
18:24 <+lightnote_> ShayArnett: when back http://pastie.caboo.se/155493
18:25 <+lightnote_> I have lots of code edits and commentout code in there as well
18:25 <+lightnote_> the top uploader is the model loader
18:25 <+kenphused> jodo: i propped up a proof-of-concept date helper for 053 a month or so ago... but it is only ~ 60% functional
18:25 <+lightnote_> the bottom one just talks to controller but that works! :(
18:25 <+jodo> can you pastie it? maybe i can polish it
18:30 <+jodo> kenphused: that was for you
18:30 <+kenphused> jodo: sure....
18:30 <+kenphused> give me a few minutes
18:31 <+ShayArnett> lightnote_: Bunny.new(params[:butt]) does that pull a bunny out of your butt?
18:31 <+ShayArnett> :D
18:31 <+jodo> kenphused: kk
18:31 <+lightnote_> ShayArnett: I named it that due to frustration
18:31 <+ShayArnett> lol
18:31 <+lightnote_> at 100:00 last night
18:32 <+kenphused> jodo: http://pastie.caboo.se/155496
18:32 <+lightnote_> and then my server desided not to want to run merb
18:32 <+lightnote_> ::D
18:32 <+ShayArnett> lightnote_: don't set your id and name on your input field to "params[butt]"
18:33 <+ShayArnett> change it to "butt[]"
18:33 <+jdempsey> oh it was that?
18:33 <+jdempsey> heh nice
18:33 <+lightnote_> thats new to me :D
18:33 <+jodo> kenphused: great, thanks
18:34 <+ShayArnett> lightnote_: try that out and let me know where that gets you
18:34 <+lightnote_> testing
18:34 <+jodo> kenphused: so whats the 40% that's not functional
18:34 <+lightnote_> ShayArnett undefined method `stringify_keys!' for #
18:35 <+lightnote_> should I change it to that butt[] in the controller as well ?
18:35 <+ShayArnett> lightnote_: nope
18:35 <+kenphused> jodo: i did not get the select date and time stuff to populate the date correctly... from separate drop down lists into date format
18:36 <+jodo> ah ill see if i can do that then
18:36 <+ShayArnett> lightnote_: change @bunny = Bunny.new(params[:butt]) to @bunny = Bunny.from(params[:butt]) in your controller
18:36 <+kenphused> jodo: i was waiting till 090 came out before polishing it up... but if you can do it, that would be great
18:39 <+lightnote_> ShayArnett: Symbol as array index
18:39 <+lightnote_> it stops at the model i.content_type = tempfile[:content_type]
18:41 <+ShayArnett> lightnote_: try just "butt" as the name and id on your form
18:42 <+ShayArnett> i upload multiple at once so i use "uploads[]" might not work with [] when your only doing a single file
18:42 <+jodo> kenphused: i think getting the drop downs to create a Date object involves doing stuff on the orm side
18:42 <+ShayArnett> lightnote_: try just "butt" as the name and id on your form
18:44 <+lightnote> ShayArnett: ok testing now
18:45 <+kenphused> jodo: that's where i get tripped up
18:46 <+jodo> kenphused: ah ok ill get on that
18:46 <+ShayArnett> if you have all the parts of the date
18:46 <+ShayArnett> you can asemble them and run them through Time.parse to get a valid date object i'm pretty sure
18:47 <+ShayArnett> maybe it was Date.parse though .. i'd have to go back and try it again
18:47 <+lightnote__> ShayArnett: WTF ! That worked!
18:47 <+lightnote__> why ?
18:47 <+ShayArnett> :D
18:47 <+lightnote__> how
18:47 <+ShayArnett> its confusing as hell but here goes
18:47 <+lightnote__> your a merb saviour !
18:47 <+lightnote__> k
18:48 <+ShayArnett> from your form, the name of the input is sent into params so name="butt" -> params[:butt] in the controller
18:48 <+ShayArnett> which you then pass off to Bunny.from(params[:butt])
18:49 <+lightnote__> so it makes the new params in the bunny just of this :butt
18:49 <+lightnote__> or Bunny Butt!
18:50 <+ShayArnett> pretty much
18:50 <+ShayArnett> the form names can get confusing though depending on what you want to do
18:50 <+lightnote__> Ha, ugh Awesome and sooo headache filled
18:50 <+lightnote__> would it have helped if I had used the helper instead of the pure html ?
18:51 <+ShayArnett> lightnote__: sometimes .. but i haven't found the helper very useful on file uploads
18:51 <+lightnote__> cool. Cause I don't know what it is I just like the html better
18:52 <+lightnote__> well awesome, tt saves me a day to now reinstall merb again on the sever
18:52 <+lightnote__> Thank you ! ::D
18:54 <+lightnote__> oh and the merb project is called crapsandwich :D I love code names
19:00 <+ShayArnett> lightnote__: lol
19:00 <+ShayArnett> what does it do besides pull bunnies out of butts?
19:00 <+lightnote__> soon it will name babies from the 50's !
19:03 <+kenphused> lightnote__: also... :symbols are different than 'symbols'
19:04 <+lightnote__> no they can't be. Why ?
19:04 <+lightnote__> I thought they were both text strings
19:04 <+lightnote__> er : is symbol
19:04 <+lightnote__> and :fish => :food
19:05 <+lightnote__> is hash
19:05 <+lightnote__> but :fish => 'food' is different ?
19:05 <+ShayArnett> lightnote__: nope both hashes
19:05 <+argv[]> :x is a Symbol, 'x' is a String
19:06 <+ShayArnett> but if something is expecting to find a symbol when it looks at [:fish] it will not like it
19:07 <+lightnote__> and [:fish] is one array ? or param
19:07 * lightnote__ looks for ruby book
19:07 <+ShayArnett> lightnote__: http://www.infoq.com/minibooks/ruby/ and http://poignantguide.net/ruby/chapter-1.html
19:09 <+jdempsey> ShayArnett: not sure what you mean with this
19:09 <+jdempsey> but if something is expecting to find a symbol when it looks at [:fish] it will not like it
19:09 <+ShayArnett> i'll pastie somethign
19:09 <+jdempsey> if its expecting to find a hash with key of :fish, that should be good...
19:09 <+jdempsey> i think i know what you're saying in theory
19:09 <+lightnote__> ShayArnett: you like the book ? I have a huge begin ruby book elsewhere
19:09 <+lightnote__> just at coffee shop atm
19:09 <+jdempsey> i have it happen often with specs where i'll send in a param hash of :foo => :bar
19:09 <+jdempsey> and look for :bar
19:10 <+jdempsey> sry i mean :foo
19:10 <+jdempsey> but at that point its 'foo' in the params hash
19:10 <+ShayArnett> lightnote__: i like both of them... why's is good becuase it's kinda funny and the examples help drive the code into your head
19:10 <+ShayArnett> the humble ruby book is a better reference though...
19:11 <+lightnote__> which one hleps to read source code ?
19:12 <+lightnote__> I have the apress novice to pro
19:12 <+lightnote__> so they say :P
19:12 <+ShayArnett> heres what i meant
19:12 <+ShayArnett> http://pastie.caboo.se/private/nvdnrlqizwthqvnoidcjag
19:13 <+lightnote__> _whys is cool but he did not finish it
19:13 <+lightnote__> but I do have his Shoes book from lynda
19:15 <+lightnote__> oh I see now from the pastie
19:17 <+lightnote__> what I really want is a short tutorial on breaking down helpers like so def form_for(obj, attrs={}, &block)
19:17 <+lightnote__> just in some sort of printed always there to quickly look over image
19:18 <+lightnote__> been looking at netbeans when I have the chance to read more as well
19:20 <+jpease> is freezing all working in the latest 0.9 code?
19:21 <+ic9> control_for isn't working for me, what do I have to do to enable it_
19:24 <+jdempsey> ic9: whats not workign?
19:24 <+jdempsey> have you required it in init.rb?
19:26 <+ic9> what should i require?
19:26 <+jdempsey> merb_helpers for one
19:26 <+ic9> I have dependency 'merb_helpers'
19:27 <+ic9> in init
19:27 <+jdempsey> yeah but is it required?
19:27 <+jdempsey> 1 sec
19:27 <+jdempsey> http://pastie.caboo.se/155529
19:27 <+jdempsey> for example
19:27 <+jdempsey> there's been a change so dependency doesn't do the requiring
19:27 <+jdempsey> thats a snippet from a small app where i use things like form_for
19:27 <+ic9> ok ..
19:27 <+ic9> i thought dependency was a fancy way of requiring
19:28 <+jdempsey> yea it used to be
19:28 <+ic9> so, dependency has no function right now_
19:28 <+jdempsey> it'll help with versions
19:28 <+jdempsey> if you don't need a specific version i think require is fully sufficient, if you do you'd want to do something like # dependencies "RedCloth" => "> 3.0", "ruby-aes-cext" => "= 1.0"
19:28 <+probablycorey> for reference
19:28 <+jdempsey> i'm not sure if this will change anymore.....but its my understanding of how things currently work
19:29 <+ic9> ok, thanks jdempsey!
19:29 <+jdempsey> np!
19:30 <+ic9> still, control_for doesn't work
19:30 <+ic9> do I have to include something?
19:30 <+jdempsey> hmm, what errors are you seeing?
19:31 <+jdempsey> also, the method is "control_for" ?
19:32 <+ic9> undefined method error
19:33 <+ic9> undefined method `control_for'
19:33 <+jdempsey> hmm
19:33 <+jdempsey> where are you getting that from?
19:33 <+jdempsey> i've used form_for before but not control_for
19:33 <+ic9> http://merb.rubyforge.org/classes/Merb/FormControls.html
19:34 <+ic9> that one
19:34 <+jdempsey> good chance thats out of date unfortunately :-(
19:34 <+sintaxi_> ic9: perhaps you mean text_control
19:34 <+ic9> no
19:34 <+ic9> I wanted to automagically render a date control
19:35 <+sintaxi_> oh.
19:35 <+jdempsey> yeah i don't see control_for defined anywhere in the source....
19:35 <+jdempsey> are you on merb 0.5.3?
19:35 <+ic9> on 0.9
19:35 <+sintaxi_> this has not been done yet to my understanding.
19:35 <+jdempsey> yea i think its not around anymore
19:36 <+jdempsey> do you use git ic9 ?
19:36 <+ic9> ok.. but its still in the docs... hehe what a teaser
19:36 <+jdempsey> yeah totally
19:36 <+ic9> yes I have git
19:36 <+jdempsey> thing is 0.9 is definitely on the edge
19:36 <+jdempsey> and the docs just haven't caught up yet
19:36 <+jdempsey> merb-core is pretty well documented at
19:36 <+jdempsey> http://www.merbivore.com/documentation/merb-core/0.9.0/index.html
19:36 <+ic9> but I have the gem right now, not installed merb from git
19:36 <+jdempsey> k
19:36 <+jdempsey> yea was just going to say
19:36 <+sintaxi_> I made a hack for this.
19:36 <+jdempsey> pull down the source and take a look through the code
19:36 <+jdempsey> i'm pretty sure you won't find control_for
19:37 <+ic9> ah thanks for that link
19:37 <+jdempsey> http://pastie.caboo.se/155537
19:37 <+jdempsey> look around those files
19:37 <+jdempsey> helpers are still pretty sparse
19:37 <+jdempsey> but lots of hard work goin in daily to bring this stuff up to snuff :-)
19:37 <+sintaxi_> here is my hacked up rails helper http://pastie.caboo.se/155538
19:38 <+nfresne> in merb what is the proper way to get the current controller path and action? In rails i think it was something like @controller.controller_path and @controller.action_name.
19:38 <+sintaxi_> just stick that in your lib dir and then include it in your global helper
19:39 <+plaggypig> is it possible to require stuff _after_ the mongrel handler has been loaded?
19:39 <+sintaxi_> nfresne: params[:controller] and params[:acrion]
19:41 <+jdempsey> would after_app_loads be what you want?
19:41 <+jdempsey> or maybe before_app_loads?
19:42 <+plaggypig> jdempsey: after_app_loads gets called before the mongrel adapter does
19:42 <+jackdempsey> plaggypig: hey, still me, just fixing up nicks
19:42 <+jackdempsey> um, hmm
19:43 <+jackdempsey> yea i don't know of any after_mongrel_loaded type hook-ins off the top of my head
19:44 <+jamie_ca> what kind of magic do I need to do to get merb running from ROOT/gems ?
19:45 <+wasnotrice> i made a plugin that supports markaby views. what's the best way to share this kind of thing?
19:45 <+ic9> jdempsey: where can I find those plugins you showed me a pastie of?
19:46 <+jackdempsey> 1 sec
19:47 <+jackdempsey> http://github.com/wycats/merb-plugins/tree/master/merb_helpers/lib/merb_helpers
19:47 <+jackdempsey> for that frozen question
19:48 <+jackdempsey> i think you want merb-gen freezer
19:48 <+jackdempsey> then script/frozen-merb
19:53 <+jamie_ca> jackdempsey: thanks
19:53 <+jamie_ca> it's broken atm, but I'll file a bug once I get it working :)
19:54 <+jackdempsey> heh cool gl
20:04 <+AndrewO> is there a way to get the route object from a controller?
20:05 <+AndrewO> I see there's a Merb::Controller#route in the docs, but it calls request.route, which seems to be broken
20:06 <+jamie_ca> AndrewO: it's def. broken at the moment
20:06 <+argv[]> ive noticed that
20:06 <+jamie_ca> the route matching code last I checked is getting that return value, but isn't using it anywhere
20:07 <+AndrewO> so is there another way to find out if a named route was used to get to a controller?
20:08 <+Stephane_> simple question, is it possible to use inheritance in Merb model ( I cant with AR either DM) ?
20:14 <+jodo> wycats: how do I get the date/time helpers to load?
20:14 <+Stephane_> is it possible to use inheritance in Merb model ( I cant with AR either DM) ?
20:18 <+argv[]> why not?
20:22 <+Stephane_> i tried but cant
20:24 <+ShayArnett> Stephane_: class Article < ActiveRecord::Base
20:24 <+ShayArnett> ?
20:24 <+Stephane_> the models are load in alpha order
20:24 <+Stephane_> then if you have AArticle < Article
20:24 <+Stephane_> it will raise an error
20:25 <+ShayArnett> you could try putting the models you want to inherit from in lib
20:25 <+ShayArnett> like merbful_authentication does
20:25 <+cockamamie> is there a merb 0.9 gem?
20:26 <+ShayArnett> cockamamie: yes but you probably don't want it yet
20:26 <+ShayArnett> git versions are much more stable and bug free
20:26 <+cockamamie> whats the gem name?
20:26 <+cockamamie> is it merb still?
20:26 <+Stephane_> ok thx i will try with lib
20:26 <+ShayArnett> its not in rubyforge yet
20:27 <+cockamamie> ah cool, ok, thx
20:27 <+ShayArnett> just on merbivore
20:27 <+wasnotrice> Stephane_: You can also just put "require 'article'" in Article.
20:27 <+wasnotrice> Stephane_: in AArticle, I mean
20:27 <+Stephane_> ok :)
20:28 <+Stephane_> it works this way, thx for help
20:28 <+wasnotrice> no problem!
20:42 <+Tyler> Afternoon everyone.
20:43 <+jpease> hello
20:46 <+jackdempsey> buenos tarder Tyler
20:47 <+jackdempsey> tarde*
20:47 <+jackdempsey> hehe
20:47 <+Tyler> I'm intrigued by merb, it seems to be perfect for developing just the right applications.
20:47 <+Tyler> The whole "take what you need, leave what you don't" is very attractive.
20:48 <+jackdempsey> yeah
20:48 <+jackdempsey> and the appreciation grows as you look into the code more and more
20:48 <+jackdempsey> a big difference for me has been that Ralis does too much for you and its hard to tell where and why (and when you find it, it can be tricky code)
20:49 <+Tyler> Very nice. I'm not much of a programmer, but I'm hoping to find an answer to my framework prayer. :)
20:49 <+jackdempsey> Merb may not do "enough", so you have to do more yourself, but this benefits you greatly as you have more control, you understand more of whats going on, and when you look into the source its just easier to deal with and use
20:49 * Tyler nods.
20:49 <+Tyler> Which is perfect for what my needs will be.
20:50 <+Tyler> Have you heard of mental models jackdempsey?
20:50 <+Tyler> http://en.wikipedia.org/wiki/Mental_model
20:52 <+jackdempsey> i was in the room when you mentioned it before, but hadn't really heard of it previously
20:52 <+Tyler> Ah okay.
20:53 <+Tyler> My apologies, it's been a long day so far. :)
20:53 <+jackdempsey> i suppose a good analogy using mental models would be "Merb:1.2.3.4 :: Rails:(*&$@$*&384729347niner"
20:53 <+jackdempsey> haha not at all, s'all good
20:53 * Tyler chuckles.
20:53 <+Tyler> I would agree.
20:53 <+jackdempsey> but yea, cool stuff
20:54 <+jackdempsey> i took a neural nets course back in college and really that sort of thing
20:54 <+jackdempsey> melding of tech and psych
20:54 <+Tyler> Interesting. What did you take away from it?
20:54 <+jackdempsey> hehe, oh its been a while.....i mean honestly, its hard to say much in that respect...
20:55 <+jackdempsey> overall the brain is an interesting blend of science and "magic" in my opinion
20:55 <+jackdempsey> as chemically/electrically everything's explainable
20:55 <+jackdempsey> but where the line of programmed thought and free will/consciousness comes in
20:55 <+jackdempsey> not so easy to say :-)
20:56 <+jackdempsey> in general i think as we come to the limits of how fast we can get processors to be, and start having more multi-core machines etc, we'll see nets etc used more and more....which is pretty cool stuff
20:56 <+jackdempsey> now if only erlang wasn't so ugly
20:56 <+argv[]> free will comes from imperfections in the science
20:56 <+Tyler> A good argument for both the inclusion of religion and science in the world.
20:56 <+argv[]> or, magic
20:56 <+jackdempsey> argv[]: interesting, hadn't heard/thought about that before
20:57 <+Tyler> Ars Magica
20:57 <+argv[]> evolution would never exist without imperfection
20:57 <+argv[]> at least, not as it does today
20:57 <+Tyler> Is erlang used in all this cloud computing movement?
20:58 <+jackdempsey> i don't think often, but from what i know it would be a great fit
20:58 <+jackdempsey> though i'm getting off merb a bit now :-)
20:59 <+Tyler> Aye, more merb. :)
20:59 <+Tyler> I'd love to see how far it can be pushed to create a mental model service.
21:02 <+jackdempsey> yea what're you envisioning?
21:03 <+Tyler> Basically the first of a number of personal/business tools. The service would allow individuals or groups to create these mental models to help them realise more accurately their projects.
21:04 <+Tyler> It could be used by anyone really, the market is very open.
21:04 <+Tyler> Product strategists, managers, UX, etc.
21:05 <+jackdempsey> ah
21:05 <+jackdempsey> cool
21:05 <+Tyler> Anyone that has a need to better understand a function.
21:06 <+Tyler> I went to a talk given by Indi Young on mental models, and she gave an excellent example of how a simple act of going to a movie involves dozens of actions attached to many more emotions and subactions.
21:07 <+Tyler> The basic idea is to understand all the facets of going to a movie, from first thought of actually attending, to leaving the theatre and talking to your friends about it.
21:07 <+Tyler> It's perfect for deriving a campaign theme, developing a new web service, etc.
21:08 * the_mug wonders where he's at
21:09 <+jackdempsey_> heh
21:09 <+Tyler> Myself? I'm in the greater Seattle area.
21:09 <+the_mug> I wondered what channel I was in... :-p
21:10 <+Tyler> Oh, referencing yourself.
21:10 <+Tyler> Righto.
21:10 <+the_mug> Tyler: :)
21:10 <+the_mug> btw your idea sounds interesting
21:10 <+Tyler> Oh! Well thank you. :)
21:11 <+Tyler> I'm going to be working on the functional specification this evening after work.
21:13 <+Tyler> Naturally there'll be collaboration features, but the idea is to effectively capture these mental processes and draw results from them.
21:13 <+the_mug> Tyler: do you have programming experience in ruby? in general?
21:14 <+Tyler> Not yet. I've purchased the Pickaxe though and plan on immersing myself. I'm more a front-end fellow. :)
21:14 <+Tyler> I've read through Why's Poigent guide as well, lovely fellow and quite the fun read.
21:15 <+the_mug> yeah
21:15 <+the_mug> Tyler: the Ruby Way is another book I'd recommend
21:16 <+Tyler> Excellent. I'll have to head over to B&N after work and see if they have it.
21:17 <+Skip> Any way to get around this:
21:17 <+Skip> Missing MerbResourceControllerTestGenerator class in /usr/lib/ruby/gems/1.8/gems/merb-gen-0.9.0/test_unit_generators/merb_resource_controller_test/merb_resource_controller_test_generator.rb
21:17 <+QaDeS> hiyas. rake sequel:db:migrate is missing the schema_info table. how do i initially create it?
21:18 <+Skip> that happens when I try and merb-gen a resource with unit tests
21:18 <+Tyler> Thanks for the interest though the_mug, I'm hoping businesses will flock around an easy-to-use online service rather than having to find a giant whiteboard and gobs of stickynotes. :)
21:21 <+Skip> How do you configure merb-gen to use HAML instead of erb?
21:21 <+jackdempsey_> require 'merb-haml'
21:21 <+jackdempsey_> in init.rb
21:22 <+Skip> does that override erb automatically?
21:22 <+jackdempsey_> nah just means you can use it when you want
21:22 <+argv[]> its currently broken though, no?
21:22 <+tdreyno> Seriously folks, I don't want to be the old man in the room, but why the interest in haml? Or is it just a "trying new things" kinda thing (like merb, ruby, etc)
21:22 <+jackdempsey_> ie index.html.haml instead of index.html.erb
21:23 <+jackdempsey_> argv[]: just with helpers
21:23 <+jackdempsey_> normal haml will work
21:23 <+argv[]> tdreyno its pretty cool.
21:23 <+jackdempsey_> but something like form_for is still broked
21:23 <+jackdempsey_> tdreyno: after you get used to it, its much simpler and cleaner looking
21:23 <+jackdempsey_> and i'm a lazy typist so i appreciate the lack of lots of closing tags, etc
21:23 <+argv[]> defining your templates by DOM structure rather than attributes/syntax is way smarter
21:23 <+tdreyno> jackdempsey_: fair enough
21:24 <+kwe> anyone have an example of http_auth in merb, I'm thinking kind of like Rails2 has?
21:24 <+tdreyno> I do nothing but HTML/CSS all day long. The lose of control (even whitespace) scaries me silly.
21:24 <+jackdempsey_> play with it sometime and see what you think
21:24 <+tdreyno> I don't envy people trying to debug haml-generated pages in IE6
21:24 <+jackdempsey_> hmm
21:24 <+jackdempsey_> i feel like it creates nicer looking source
21:24 <+jackdempsey_> i know what you mean about the loss of control
21:25 <+jackdempsey_> but in the end it didn't bother me much
21:25 <+jackdempsey_> of course i'm dealing with very simple views a lot of the time
21:25 <+Malesca> Haml is quite pleasant. It's also quite inelegant though – it doesn't handle common things like inline tags(!) very nicely.
21:25 <+jackdempsey_> yea there're some things like that that get a little kludgy
21:26 <+amoeba> == solves that, no?
21:26 <+Malesca> In a sense it's elegant because it's oversimplified.
21:26 <+jackdempsey_> not sure how much of that is my lack of complete knowledge orwhat
21:26 <+tdreyno> also, I program ruby for a reason.... white-space aware languages are crazy (yeah, you python)
21:26 <+tdreyno> :)
21:26 <+jackdempsey_> yea i didn't think i'd like it, trust me, and i still wouldn't want to code ruby like this
21:26 <+argv[]> oh come on, whitespace cant be the reason you hate python
21:26 <+jackdempsey_> but the views are more html stuf anyway so its all good
21:26 <+jackdempsey_> (i don't like passing self all around, heh)
21:27 <+tdreyno> argv[]: no, I don't hate python, I was just taking a shot :)
21:27 <+argv[]> there are so many better reasons
21:27 <+hcatlin> Malesca: that's like saying that hammers are useless because they aren't good at screwing things in.
21:27 <+jackdempsey_> lol
21:27 <+hcatlin> Malesca: Haml was never intended for inline formatting and i don't use it for that at all
21:27 <+tdreyno> oh dear, got the haml king in the room :)
21:27 <+hcatlin> hahaha
21:27 <+jackdempsey_> lol
21:27 <+Malesca> hcatlin: Ah, so you do e.g. >>%p Foo <strong>bar</strong!<<? Interesting.
21:27 <+hcatlin> tdreyno: why do people like Haml?
21:27 <+argv[]> oh coincidence
21:27 <+Malesca> Don't get me wrong, I use Haml.
21:28 <+hcatlin> yes, i do handcode html inline if i have an example like that
21:28 <+jackdempsey_> good to know, i do as well and was curious if thats "good" practice
21:28 <+hcatlin> if the content is dynamic, i decided whether i should use something like markaby
21:28 <+hcatlin> or if i should do a simple ==
21:28 <+Malesca> I do that sometimes. Use format strings sometimes.
21:28 <+Malesca> Like = "(%s)" % link_to(…)
21:29 <+Tyler> Are there any sites out there that I would be able to engage a Merb programmer to partner with?
21:29 <+hcatlin> yeah, that's a very good way to do it Malesca
21:29 <+argv[]> hcatlin haml supports ruby blocks yes? (x.each do |y| \n #blah= y.value \n end)? i couldnt really find docs/examples on that on the haml site
21:29 <+the_mug> Tyler: in here is your best bet
21:29 <+Malesca> Or comma-concatenation for things like = link_to("log out", …), "?"
21:29 <+hcatlin> argv[]: absolutely! it would be really lame if it didn't
21:29 <+hcatlin> let me make up a quick pastie
21:30 <+hcatlin> http://pastie.caboo.se/155601
21:30 <+hcatlin> its auto-ended
21:30 <+argv[]> ah, thats pretty cool
21:30 <+hcatlin> and - is used which is the 'supress output'
21:30 <+Tyler> Righto the_mug. Well, I'll see about a business partner once I get my functional specification complete. I'd like to give something a bit more solid than an idea to a potential partner. :)
21:30 <+hcatlin> you can also make your own block handlers
21:30 <+hcatlin> and helpers that print out nice code
21:31 <+argv[]> hm, well that solves some confusion
21:31 <+the_mug> Tyler: right on!
21:31 <+hcatlin> tdreyno: so, you asked a great question
21:31 <+hcatlin> tdreyno: why give a shit?
21:32 <+the_mug> heh
21:32 <+tdreyno> hcatlin: well said :)
21:32 <+hcatlin> erb works just fine
21:32 <+hcatlin> erb is faster
21:32 <+hcatlin> and erb is what everyone knows
21:32 <+argv[]> hcatlin you should publish some of those examples in your tutorial/docs pages.. in retrospect i now see an "if" block example, but nothing loop related
21:32 <+hcatlin> argv[]: will do.
21:32 <+QaDeS> rake sequel:db:migrate is missing the schema_info table. how do i initially create it?
21:32 <+tdreyno> I actually avoid the common rails/merb helpers as well... control freak
21:32 <+Skip> ugh.. does lighthouse cut off the submit buttons for anyone else in Epiphany when you want to create a new ticket?
21:32 <+hcatlin> tdreyno: its easily replaced with "C++"
21:33 <+hcatlin> Haml was created in a real-life multiple-project environment. When real business demands were at hand.
21:33 <+tdreyno> god, I had being on this side of this kind of discussion. It's like Ruby vs C#, but I'm on the "loves to waste keystrokes" side
21:33 <+tdreyno> *hate
21:33 <+hcatlin> its not just a cool idea as a university project
21:34 <+hcatlin> i did it because i found myself being extremely inefficient in views
21:34 <+hcatlin> i found my hands hurting
21:34 <+hcatlin> and i found that i hated the output
21:34 <+tdreyno> hcatlin: do the same people write the haml as the css?
21:34 <+hcatlin> my sites source looked like poooooop
21:34 <+hassox> I found my eyes hurting ;)
21:34 <+hcatlin> tdreyno: absolutely.
21:34 <+hcatlin> tdreyno: in fact, in our company, the developers were way harder to convince than the CSS guys
21:34 <+Malesca> A really nice thing is that you can use ERB wherever you want, too. Use ERB partials if Haml doesn't cut it for some reason, or a view entirely in Haml.
21:34 <+tdreyno> the context switching between haml -> generated html -> css seems... frustrating
21:34 <+hcatlin> CSS guys looooooove Haml
21:35 <+hcatlin> well, you don't really have to look at generated haml much
21:35 <+hcatlin> less errors
21:35 <+kenphused> do i look any different? i am in my spiffy new kde 4.0 libs
21:35 <+hcatlin> i rarely look at source unless i'm diong javascript
21:35 <+hcatlin> Haml is based off of CSS
21:35 <+jackdempsey_> i think thats a good point hcatlin , it definitely helps me create better designed/organized/looking views
21:35 <+hcatlin> So, its Haml .> CSS code
21:35 <+plaggypig> what do you guys think about implementing something like this (http://purefiction.net/mongrel_proctitle/) into merb's mongrel handler?
21:35 <+the_mug> kenphused: nice
21:35 <+hcatlin> In fact, with Sass.... it looks like each other
21:35 <+tdreyno> hcatlin: yes, I see that. Good point
21:36 <+kenphused> the_mug: thanks!
21:36 <+tdreyno> hcatlin: oh, don't get me started on sass :-p
21:36 <+hcatlin> hahahaha
21:36 <+hcatlin> well, CSS is like the worst language ever invented.
21:36 <+hcatlin> no nesting!!!!
21:36 <+tdreyno> hcatlin: truly
21:36 <+hcatlin> WHAT?
21:36 <+kenphused> (even worse than visual basic?)
21:36 <+tdreyno> seems better for sass to be nested CSS that generates valid CSS than have yet another syntax
21:37 <+argv[]> my only issue with haml is the rubyness of the syntax.. :attr => 'value' is.. well, overkill imo.
21:37 <+tdreyno> + variables
21:37 * tdreyno also hates RJS :-p
21:37 <+Malesca> argv[]: The nice about that rubiness is you can generate it with helpers.
21:37 <+the_mug> tdreyno: anything else?
21:37 <+Malesca> argv[]: As Ruby, I mean. %myelement{attributes_from_helper}
21:38 <+hcatlin> tdreyno: yeah, i considered that for a while
21:38 <+tdreyno> the_mug: am I being bitchy or was that a serious question? anything else I dislike or anything else about sass?
21:38 <+hcatlin> tdreyno: in fact, internally we used that for a hwile
21:38 <+kenphused> is ivey around?
21:38 <+argv[]> Malesca sure, but itd be easy to add a .to_haml real quick
21:38 <+hcatlin> tdreyno: just a processor over CSS to fix nesting
21:38 <+hcatlin> however, i got itchy and started deleting shit
21:39 <+hcatlin> i mean, Sass is CSS... just without {}
21:39 <+hcatlin> and nesting is important
21:39 <+tdreyno> hcatlin: yeah, I can see that :)
21:39 <+the_mug> tdreyno: heh.. I'm just enjoying the turn of events
21:39 <+hcatlin> at some point Sass actually supported having {}.... it just ignored them
21:39 <+tdreyno> I need more emoticons, I feel very confrontational and that's not my intention
21:40 <+plaggypig> argv[]: do you use haml/markaby/erb?
21:40 <+argv[]> are there any other options?
21:40 <+hcatlin> tdreyno: your tone is fine
21:40 <+argv[]> heh
21:41 <+jackdempsey> erubis? :-)
21:41 <+tdreyno> I guess my root problem with haml/sass is that the browser landscape is such a mess that every single page I develop requires some kind of kludge or hack for compatibility sake. which is why I prefer doing things by hand rather than code generation. To each his own
21:41 <+argv[]> erubis is very erb'y
21:41 <+argv[]> i'd consider it near-compatible
21:41 <+jackdempsey> yep
21:41 <+hcatlin> tdreyno: example?
21:41 <+plaggypig> argv[]: which is your preferred? :)
21:42 <+tdreyno> hcatlin: IE sometimes like to render pages differently depending on whitespace. hasLayout hacks that need to be in CSS.
21:42 <+tdreyno> how exactly does one handle browser targeting (IE conditional comments) in haml?
21:43 <+tdreyno> wb, let me restate what you missed
21:43 <+Tyler> Sorry folks, computer froze up on me.
21:43 <+tdreyno> tdreyno: hcatlin: IE sometimes like to render pages differently depending on whitespace. hasLayout hacks that need to be in CSS.
21:43 <+tdreyno> [2:40pm] tdreyno: how exactly does one handle browser targeting (IE conditional comments) in haml?
21:43 <+argv[]> plaggypig well i just switched to erubis for yard last night and im pissed that it doesnt deal with <% -%> properly, but i think im doing something wrong... haml is nice but it had potential to be a language agnostic template generator which would have made it oh so much more powerful, and then markaby is just way too constrictive
21:44 <+hcatlin__> back!
21:44 <+argv[]> plaggypig that said, i might actually end up using haml for yard's templates in the end
21:44 <+tdreyno> 3rd times a charm
21:44 <+tdreyno> tdreyno: hcatlin: IE sometimes like to render pages differently depending on whitespace. hasLayout hacks that need to be in CSS.
21:44 <+tdreyno> [2:40pm] tdreyno: how exactly does one handle browser targeting (IE conditional comments) in haml?
21:45 <+argv[]> you can always write a web handler that crushes your spaces
21:45 <+plaggypig> argv[]: i was looking at switching to markaby or haml - why is markaby restrictive?
21:45 <+hcatlin> ye of little faith!
21:46 <+argv[]> plaggypig well i suppose its as restrictive as haml
21:46 <+argv[]> but without the extra benefits
21:46 <+hcatlin> so
21:46 <+hcatlin> first off
21:46 <+Skip> why why why does 'rake test' load the development environment?
21:47 <+hcatlin> haml doesn't eat plain HTML
21:47 <+hassox> plaggypig: its really slow :(
21:47 <+hcatlin> <!-- whatever -> works just fine
21:47 <+argv[]> Skip http://merb.lighthouseapp.com/projects/7433/tickets/150-patch-decouple-merb-server-from-merb-initialization-sequence
21:47 <+argv[]> Skip it wont soon, hopefully ^
21:47 <+Skip> ta
21:48 <+argv[]> not sure if thats your exact issue, anyway
21:48 <+hcatlin> MOREOVER
21:48 <+hcatlin> http://pastie.caboo.se/155601
21:48 <+hcatlin> Haml helps you not have to remember specifics of doing browser conditionals
21:49 <+plaggypig> hcatlin: thats cool
21:49 <+hcatlin> and with Sass
21:49 <+jackdempsey> heh
21:49 <+hcatlin> as long as (by some means) you attach browser info to the class on the <body>
21:49 <+tdreyno> hcatlin: honestly, all I needed to hear was that it was being used in a production environment. now, I'm just picking your brain :)
21:49 <+hcatlin> (there are some rails/merb-side helpers to do that, or javascript
21:49 <+hcatlin> )
21:49 <+hcatlin> so, body might get
21:50 <+hcatlin> <body class="ie6 windows">
21:50 <+hcatlin> then, you can scope your Sass accordingly
21:50 <+hcatlin> not only that, but we have inheritance in Sass
21:50 <+hcatlin> such that you can nest a rule that will apply to the *front* of the Css scope
21:51 <+hcatlin> http://pastie.caboo.se/155613
21:51 <+hcatlin> the & says
21:51 <+hcatlin> "put everything here"
21:51 <+hcatlin> so, that ends up being started with .ie6
21:51 <+plaggypig> ah, cool
21:51 <+hcatlin> even though its nested within the logical element of discussing user formatting
21:52 <+tdreyno> hcatlin: very cool, but I'm going to need a wall-chart to document it all :)
21:52 <+hcatlin> much smaller chart than remembering all of the details of browser stuff
21:52 <+tdreyno> hcatlin: true, but already in my brain :-p
21:53 <+tdreyno> wish I could get it out
21:53 <+hcatlin> tdreyno: sorry, that's a lame reason
21:53 <+hcatlin> tdreyno: i mean, each technology choice shouldn't be made just because of 'newness'
21:53 <+hcatlin> but, neither should sticking with something when lots of people use something for very real applications and fine it increases productivity
21:54 <+hcatlin> i mean, its why we don't use <table> for layout
21:54 <+hcatlin> learning another set of CSS rules sucked
21:54 <+hcatlin> but, we did it because it could increase productivity (in theory)
21:57 <+hcatlin> /end rant
21:57 <+hcatlin> lol
21:58 <+hcatlin> man, i haven't had this conversation in a lonnnng time
21:59 <+tdreyno> hcatlin: where do you work?
21:59 <+hcatlin> Unspace Interactive in Torontoo
21:59 <+hcatlin> Toronto*
21:59 <+hcatlin> whose hosting RubyFringe!
21:59 <+hcatlin> I'm a curator of it!
22:00 <+plaggypig> cool :)
22:01 <+tdreyno> hcatlin: point me to a live side running haml? I'd like to peruse the output if you don't mind my prying
22:01 <+swhitt> what's the eta on 0.9.1?
22:01 <+tdreyno> swhitt: just after Duke Nukem Forever
22:01 <+hcatlin> uhhh
22:02 <+hcatlin> http://rubyfringe.com/
22:02 <+hcatlin> that works?
22:02 <+swhitt> kind of like textmate
22:02 <+hcatlin> let me look for more
22:02 <+swhitt> textmate2.0
22:02 <+hcatlin> http://iphone.thescore.com/
22:02 <+Malesca> They're actually coding Duke Nukem Forever in TM2.
22:02 <+tdreyno> I was having problems with controller filters last night, but nobody was awake. Anyone remember seeing anyone else having problems?
22:03 <+tdreyno> hcatlin: how did you do the google tracking stuff? Just paste is amongst the haml?
22:03 <+hcatlin> yuup
22:03 <+hcatlin> i usually clean it up some
22:03 <+Malesca> I did Google tracking in Haml today. Put it in an erb partial.
22:03 <+hcatlin> uhhh
22:03 <+hcatlin> more: http://drinkr.ca/
22:04 <+hcatlin> eh, you don't have to do that... that's probably more inefficient
22:04 <+argv[]> hm, we need one of those for the SAQ
22:05 <+tdreyno> hcatlin: looks fabulous, thanks
22:05 <+swhitt> haml haml
22:05 <+Malesca> Yeah, likely more inefficient. I prefer erb for this stuff though, and page caching will make it a non-issue.
22:05 <+swhitt> merb!
22:05 <+hcatlin> here is a google analytics thing
22:05 <+hcatlin> http://pastie.caboo.se/155624
22:05 <+hcatlin> that's the application layout for RubyFringe.com
22:05 <+tdreyno> chick chick chick
22:06 <+Malesca> hcatlin: Doesn't meta even self-close these days?
22:06 <+hcatlin> yup
22:06 <+hcatlin> like the band!
22:06 <+hcatlin> you got the reference?
22:06 <+tdreyno> yup
22:06 <+hcatlin> Malesca: probably....
22:06 <+hcatlin> tdreyno: that's why i made it that
22:06 <+Skip> where is Merb::Test::Request defined?
22:06 <+tdreyno> hcatlin: good call :)
22:06 <+hcatlin> INTENSIFY!
22:07 <+Skip> Merb::Test::FakeRequest can't seem to find it
22:07 <+tdreyno> round two: going to scrutinize haml's source :-p
22:07 <+hcatlin> if you like good bands, then you should def come to RubyFringe
22:07 <+hcatlin> we are having some really awesome toronto bands play
22:07 <+hcatlin> also, some really hot stand up comedians
22:07 <+tdreyno> hcatlin: 'tis a long way (and far colder) than Arizona
22:07 <+hcatlin> in the summer, its nice and warm in toronto
22:07 <+hcatlin> but not hot
22:08 <+mrneighborly> hcatlin: like whom?
22:08 <+hcatlin> We Take Lovers is one
22:08 <+mayo> can i not do blocks with provides like it's possible with respond_to in rails?
22:08 <+hcatlin> my band is playing
22:08 <+tdreyno> hcatlin: deploying anything on merb?
22:08 <+hcatlin> tdreyno: just drinkr.ca
22:08 <+hcatlin> tdreyno: and a few other internal projects
22:08 <+the_mug> hcatlin: is Flock of Seagulls characterized as a "good band"?
22:09 <+hcatlin> hahaha
22:09 <+hcatlin> well, to me... yes
22:09 <+hcatlin> also, we are really hoping to get Final Fantasy to play
22:09 <+the_mug> LMAO
22:09 <+the_mug> sounds fun actually
22:09 <+mrneighborly> i'll only speak if you get zach galifiniakis to come do comedy
22:09 <+hcatlin> http://profile.myspace.com/index.cfm?fuseaction=user.viewprofile&friendid=146525543
22:09 <+hcatlin> oh my god, we would love that
22:09 <+hcatlin> I am hoping for Aziz Anisari
22:10 <+mrneighborly> otherwise i'll just stare at the audience awkwardly while various videos play behind me on the projector
22:10 <+hcatlin> I knew him back when i lived in NYC before he got big
22:10 <+hcatlin> Nick Swardson would be my top choice, but he's big shit.
22:10 <+benburkert> Skip: try Merb::Test::ControllerHelper, or Merb::Test::RequestHelper
22:11 <+hcatlin> also, we are trying to get Scott Thompson
22:11 <+hcatlin> he lives in Toronto and makes me lol
22:11 <+hcatlin> but, we'll probably end up with more underground peeps than that.
22:11 <+hcatlin> which is fine with me
22:11 * mrneighborly wishes he was all awesome and in a band.
22:11 <+hcatlin> hahahaha
22:11 <+hcatlin> my band sucks
22:11 <+hcatlin> its me and mferrier
22:11 <+the_mug> mike birbiglia is pretty funny
22:11 <+mrneighborly> i haven't played with anyone else in like 4 years almost
22:11 <+hcatlin> he is awesome at music
22:11 <+hcatlin> and i suck
22:12 <+hcatlin> which is funny on stage
22:12 <+mrneighborly> the last band i started got signed after i left hah
22:12 <+hcatlin> and i like to write songs
22:12 * the_mug can rock his 5-string American Jazz Bass
22:12 <+hcatlin> niiice
22:12 <+hcatlin> we kind of would like to do a band for the conference
22:12 <+hcatlin> like a "house band"
22:12 <+hcatlin> write some songs
22:12 <+hcatlin> and have different rubyists practice the day before
22:12 <+hcatlin> and just play a song or two
22:12 <+plaggypig> write some songs in haml!
22:12 <+the_mug> hcatlin: what kind of music?
22:13 <+mrneighborly> of course, the new guy has tons of $$$, didn't care about going to college, and was really really pushy, so they pretty much had a way better chance of getting signed with him running things heh
22:13 <+hcatlin> we think it would be hilarious
22:13 <+hcatlin> *shrug*
22:13 <+hcatlin> any kind
22:13 <+hcatlin> mrneighborly: suuucks
22:13 <+mrneighborly> hcatlin: no wai. i hate the type of music it is now so i would've ended up leaving anywho heh
22:13 <+kenphused> i saw flock of seagulls and men at work in tampa in the early 1980's
22:13 <+the_mug> mrneighborly: but where are they now?... passed out on their own puke!
22:14 <+the_mug> kenphused: ha! nice
22:14 <+tdreyno> git checkout -b trying_haml
22:14 <+tdreyno> :)
22:14 <+kenphused> it was awesome
22:14 <+hcatlin> i was 1 years old then.
22:14 <+the_mug> kenphused: talk to hampton he loves them
22:14 <+Skip> benburkert: Nothing in request helper and there's no controllerhelper
22:14 <+hcatlin> hahaha
22:14 <+hcatlin> i like all sorts of music
22:14 <+hcatlin> but, that's cliche to say
22:14 <+mrneighborly> the_mug: something like that. -> http://www.solidstaterecords.com/ the band is mychildren mybride
22:14 <+benburkert> Skip: what are you trying to do?
22:15 <+mrneighborly> i'm not into "hardcore" metal anymore heh so i don't know what those crazy kids do in their spare time
22:15 <+kenphused> i hate rap (i WILL not call it music)
22:15 * the_mug too likes all kinds... from Gogol Bordello to Death Cab for Cutie and beyond
22:15 <+hcatlin> i dont mind rap
22:15 <+tdreyno> kenphused: come now
22:15 <+hcatlin> as long as its white-people rap!
22:15 * kenphused says 'You can't have cRAP without rap'
22:15 <+hcatlin> OutKast!
22:15 <+hcatlin> Prince Paul!
22:15 <+tdreyno> new Lupe is awesome
22:15 <+hcatlin> Automator!
22:15 <+tdreyno> Automator!
22:15 <+the_mug> Rappers are always mad about the current year... they be like.... it's 2008 mofo!!!
22:15 <+Skip> benburkert: when I run 'rake test' I get /usr/lib/ruby/gems/1.8/gems/merb-core-0.9.0/lib/merb-core/test/fake_request.rb:6: uninitialized constant Merb::Test::Request (NameError)
22:15 <+kenphused> tdreyno: the only good rap star is a dead one.... (tupac is my fave so far)
22:16 <+Skip> FakeRequest subclasses Merb::Test::Request
22:16 <+argv[]> if its good, its not rap.. its hip hop.
22:16 <+mrneighborly> "Trapped in the Closet" by R Kelly is a fine piece of musical entertainment ANNNNNND operatic expression of the toils of a black man who cheats on his wife with a woman whose husband happens to be a gay minister
22:16 <+hcatlin> kenphused: whoa
22:16 * the_mug senses an impending flame war
22:16 <+tdreyno> argv[] has a point
22:16 <+benburkert> Skip: try including merb-test in your helper
22:16 <+benburkert> test_helper
22:16 <+kenphused> argv[]: that's an oxymoron... good and rap/hip hop
22:16 <+tdreyno> I do love me some Del tha Funkee Homosapien
22:17 <+argv[]> kenphused i wouldve said that a few years ago too
22:17 <+kenphused> my favorite line about rap is from the movie 'the last boy scout' with bruce willis...
22:17 <+tdreyno> now country.... there's an artistic wasteland :-p
22:17 <+kenphused> a guy sticks a knife into his face and tells him he wants to hear him scream
22:18 <+kenphused> bruce willis replies: 'play rap music'
22:18 <+Skip> benburkert: I require'd 'merb_test_unit'
22:18 <+the_mug> kenphused: let's talk about that Flock of Seagulls concert
22:18 <+kenphused> lmao
22:18 <+Skip> benburkert: and that seemed to work
22:18 <+Skip> benburkert: but...
22:18 <+kenphused> </end_rap_rant>
22:18 <+Skip> benburkert: new error: /usr/lib/ruby/gems/1.8/gems/merb_test_unit-0.9.0/lib/merb_test_unit.rb:6: uninitialized constant Merb (NameError)
22:19 <+benburkert> pastie the whole stack trace
22:20 <+Skip> benburkert: http://pastie.caboo.se/155634 that's without any new requires
22:20 <+tdreyno> hcatlin: /Library/Ruby/Gems/1.8/gems/haml-1.8.1/lib/sass/plugin/merb.rb:26:in `alias_method': undefined method `process' for class `MerbHandler' (NameError)
22:20 <+tdreyno> on merb from git
22:21 <+hcatlin> tdreyno: i heart merb... but we have trouble keeping up with the changing api
22:21 <+benburkert> Skip: did you install from the gem repo or from git?
22:21 <+Skip> from git
22:21 <+Skip> and then rake install
22:21 <+hcatlin> tdreyno: other people have been working on keeping that api going
22:21 <+kenphused> hcatlin: wErd
22:21 <+hcatlin> mostly the merb core peeps
22:22 <+kenphused> i am constantly rebuilding the gems as well
22:22 <+tdreyno> hcatlin: no worries, explains why most of the haml talk in here has been troubleshooting 0.9 stuff
22:22 * kenphused forgets what's not working
22:24 <+Skip> I'm wondering if it wouldn't be easier to write an app in Merb 0.5.x and then port it over later when Merb 0.9 actually works properly
22:24 <+Skip> because at the moment all I'm doing is not being productive
22:24 <+benburkert> Skip: the pastie looks like the older error, not uninitialized constant Merb::Test::Request (NameError)
22:25 <+Skip> no that's it
22:25 <+benburkert> Skip: did adding the require 'merb-test' to you helper fix anything?
22:25 <+Skip> nope
22:25 <+Skip> well I required merb_test_unit
22:26 <+Skip> but then it failed in merb_test_unit
22:26 <+Skip> and... same prob in merb-test
22:26 <+Skip> still can't find Merb::Test::Request
22:29 <+benburkert> Skip: try adding this to the end of your rakefile: http://pastie.textmate.org/private/gb0o0lpcjbfcfjrjttpjg
22:29 <+jackdempsey> yeah a lot of those Merb::Test things are broked
22:29 <+benburkert> there is no Merb::Test::Request
22:29 <+benburkert> only Request
22:31 <+benburkert> looks like the dispatch code is not being loaded
22:33 <+Skip> benburkert: I still have that Merb.start at the top of my Rakefile
22:33 <+Skip> what can I replace it with again?
22:33 <+benburkert> replace the Merb.start call in the Rakefile with: http://pastie.textmate.org/155644
22:34 <+benburkert> just add it to the end of the Rakefile, so that those are the test tasks
22:34 <+benburkert> not the ones loaded from the merb_test_unit plugin
22:35 <+Skip> ok that got it running the test environment automatically
22:35 <+Skip> should I open a ticket for this Merb::Test::Request thing?
22:36 <+benburkert> if you wan't the problem is the merbtasks.rb file in merb-plugins/merb_test_unit/lib/merb_test_unit
22:36 <+benburkert> it needs to change to the one I pastied you
22:36 <+benburkert> if your up for submitting a patch
22:36 <+benburkert> otherwise, i'll take care of it
22:37 <+Skip> which pastie the one to add at the end of the rakefile?
22:37 <+Skip> I did that
22:37 <+Skip> and still have the same problem
22:38 <+benburkert> well, I need to change the Raketask generator to use Merb.load_dependencies instead of Merb.start
22:38 <+benburkert> did those two changes fix everything for you?
22:38 <+Skip> is this for the missing Merb::Test::Request issue?
22:39 <+Skip> nope
22:39 <+benburkert> still getting that?
22:39 <+Skip> yup
22:39 <+benburkert> do you have require 'merb-core' in your test helper?
22:40 <+benburkert> or the Rakefile?
22:40 <+Skip> put it in my test_helper
22:40 <+Skip> same problem
22:41 <+Skip> this is what's required in my test_helper: require 'test/unit'
22:41 <+Skip> require 'merb-test'
22:41 <+Skip> require 'merb-core'
22:41 <+Skip> require 'merb-core/test/fake_request'
22:41 <+Skip> require 'merb-core/test/request_helper'
22:41 <+Skip> require 'uuidtools'
22:41 <+benburkert> hmm
22:43 <+Skip> I added merb-test and merb-core
22:43 <+benburkert> ohh, hold on
22:44 <+benburkert> do you have Merb.start somewhere in test_helper?
22:44 <+benburkert> instead of all those requires, have only require "merb-core"
22:44 <+mayo> is there any way of doing provides with blocks like respond_to does?
22:44 <+Skip> nope
22:44 <+benburkert> and the Merb.start
22:45 <+benburkert> Merb.start :environment => 'test', :adapter => 'runner'
22:45 <+Skip> benburkert: in test_helper?
22:45 <+benburkert> yep
22:45 <+tdreyno> mayo: what do you mean?
22:45 <+Skip> at the bottom I assume
22:45 <+argv[]> top
22:45 <+benburkert> no, top
22:45 <+mayo> tdreyno: i should say respond_to did ..
22:46 <+benburkert> pastie your test_helper
22:46 <+tdreyno> why a block rather than an if/case statement?
22:46 <+mayo> tdreyno: i need to run specific code for each format, rather than having separate templates ...
22:47 <+Skip> benburkert: this is it currently
22:47 <+Skip> http://pastie.caboo.se/155656
22:47 <+tdreyno> mayo, I think case content_type; when :js; end
22:47 <+tdreyno> should work
22:48 <+benburkert> Skip: http://pastie.caboo.se/155657
22:48 <+benburkert> Skip: merb needs to start in the test helper, else there is no way to run tests outside of a rake task
22:49 <+Skip> ah
22:49 <+Skip> that worke
22:49 <+Skip> d
22:49 <+Skip> so can I remove those tasks that you pastie'd earlier?
22:49 <+benburkert> sure
22:49 <+Skip> from my Rakefile
22:49 <+Skip> ok
22:49 <+benburkert> but i'd keep the Merb.load_dependencies
22:49 <+Skip> righto
22:50 <+mayo> tdreyno: ah, letme try that, thanks
23:15 <+SPeregrine> does anyone know of any current issues with cookie sessions in merb?
23:16 <+SPeregrine> I can't seem to get a session cookie to store
23:30 <+SPeregrine> to enable cookie based sessions, one only needs to set a session_secret_key and set the session_store to 'cookie', correct?
23:30 <+SPeregrine> I feel like maybe I'm missing a step here
23:31 <+sintaxi_> correct
23:32 <+SPeregrine> I can't seem to get my app to store session cookies
23:32 <+SPeregrine> it should store a cookie as soon as it fulfills request to the browser, right?
23:32 <+SPeregrine> I can get assign other cookies from within my app
23:34 <+sintaxi_> do you get an error if you try 'puts session.inspect'
23:36 <+SPeregrine> hmmm, no I don't get an error
23:36 <+SPeregrine> it prints:
23:36 <+SPeregrine> #<Merb::CookieSession:0x29b4ce8 @data={}, @secret="dffc84a173f98b63f173ed7e822fc1729b636750">
23:36 <+SPeregrine> nil
23:37 <+Malesca> sintaxi_: On a side node, "p session" amounts to the same thing with less typing.
23:37 <+Malesca> Oh, sorry, thought sintaxi_ was having an issue, not helping. Very much a side note, then.
23:37 <+sintaxi_> Malesca: nice
23:38 <+sintaxi_> SPeregrine: I would say then that you have sessions. you may have another problem.
23:38 <+SPeregrine> that could be
23:39 <+SPeregrine> should I be able to see a cookie in my browser from localhost?
23:39 <+sintaxi_> Malesca: still good to know :)
23:40 <+sintaxi_> SPeregrine: no. its called something else...(hold on)
23:41 <+sintaxi_> SPeregrine: its called _session_id
23:41 <+SPeregrine> and a cookie should be created as soon as my browser hits the app?
23:41 <+SPeregrine> thanks
23:42 <+sintaxi_> SPeregrine: np
23:59 <+meekish> Is there any idiomatic way to check if $('blah') call didn't return any results?
--- Log closed Fri Feb 22 00:00:07 2008
Reply all
Reply to author
Forward
0 new messages