--- Log opened Thu Jun 19 00:00:11 2008
--- Day changed Thu Jun 19 2008
00:00 <+wycats> Again mynyml: this is why I'm against AMC :P
00:00 <+mynyml> wycats: .... i dont know what AMC is..
00:01 <+wycats> alias_method_chain
00:01 <+mynyml> oh
00:03 <+mynyml> wycats: i'd love to hear if you have an alternative to it in my case though
00:03 <+wycats> mynyml: we do
00:03 <+wycats> we're fixing it right now
00:04 <+wycats> unless I'm completely confused
00:04 <+mynyml> wycats: its a different issue
00:04 <+wycats> damn you :P
00:04 <+mynyml> wycats: =)
00:04 <+wycats> so what was your issue?
00:04 <+wycats> that required AMC?
00:04 <+mynyml> wycats: the assumption that templates were files was by far the biggest one though
00:05 <+mynyml> wycats: the other one is that i need a was to grab the filename the controller is defined in
00:05 <+mynyml> *a way
00:06 <+mynyml> currently i'm AMCing render/display and querying the caller in it
00:07 <+wycats> mynyml: why do you need that?
00:08 <+mynyml> wycats: i want to avoid the user having to explicitly declare where to look for the templates. the convention i'm using is that they are defined in the same file as the controller being accessed
00:09 <+wycats> what you should do is when you compile the templates, make sure they have the path that Merb will look for them in
00:11 <+mynyml> wycats: they do. its all based on _template_location and _template_roots
00:11 <+mynyml> wycats: the question is, how do i know what files the templates have been defined in?
00:12 <+wycats> mynyml: you obviously know at the point you're compiling them ;)
00:12 <+mynyml> wycats: cause i need to scrape the file basically
00:12 <+mynyml> wycats: exactly, i need to find them if i want to compile them =)
00:13 <+wycats> whaaa?
00:13 <+wycats> I'm so confused
00:13 <+mynyml> wycats: lol
00:13 <+mynyml> i'm so not expressing myself properly here
00:13 <+afrench> wycats: why would I ever see `no such file to load -- http11` when trying to boot merb?
00:15 <+wycats> mynyml: indeed ;)
00:15 <+mynyml> wycats: alright. lets take it step by step. you have a controller, and at the bottom of the file, after __END__, some templates are defined. how would find them so you could parse them?
00:19 <+wycats> ez says DATA
00:20 <+mynyml> wycats: DATA only works on the first file called by ruby
00:20 <+mynyml> so the merb bin in this case probably
00:20 <+Booster> afrench: I think http11 is part of mongrel
00:20 <+afrench> Booster: hmmm
00:21 <+afrench> well, I have Mongrel 1.1.5 installed....seems like it would have installed it's dependencies
00:21 <+wyhaines> http11 is the HTTP parser in Mongrel.
00:22 <+afrench> wyhaines: is it a gem or something?
00:22 <+wyhaines> No. It's an integral part of Mongrel. It comes with Mongrel.
00:22 <+afrench> well....it didn't :-(
00:22 * afrench feels like he's doing something horribly wrong just from the git-go
00:22 <+wyhaines> Mongrel 1.1.5?
00:23 <+afrench> wyhaines: yup, that's the version I have installed
00:23 <+GitHub122>
http://github.com/wycats/merb-more/commit/98ef49c519d3a4071838840eecb1eda478ff3c2700:23 <+GitHub122> merb-more: Yehuda Katz master SHA1-5b55386
00:23 <+GitHub122> Fixes Haml to support the new API.
00:23 <+GitHub122>
http://github.com/wycats/merb-more/commit/5b553867bde7753b0c4da77f50d79eef30fa924c00:23 <+GitHub122> merb-more: Yehuda Katz master SHA1-ab919fd
00:23 <+GitHub122> Fixes builder to make use of new API
00:23 <+GitHub122>
http://github.com/wycats/merb-more/commit/ab919fda5c26ced9dc10f97f7e5d269becd4109100:23 <+mynyml> nice
00:23 <+wycats> mynyml: it's pushed :)
00:23 <+wycats> mynyml: pm me :)
00:23 <+mynyml> wycats: im pulling
00:24 <+wycats> mynyml: Can some people pound it real quick to make sure I didn't blow something up?
00:28 <+wycats> mynyml: the commit that was just necessary to make that happen was so pleasantly small
00:40 <+atmos> anyone have any helper spec snippets ?
00:40 <+atmos> do i just include my helper and call my functions ?
00:43 <+schwabsauce> I was trying to spec out my helper as well; the spec didn't run
00:44 <+schwabsauce> I saw that line 148 of autotest/merb_rspec.rb implies that only files ending in _spec.rb will be included
00:44 <+schwabsauce> but I'm not using autotest
00:44 <+schwabsauce> also, my stories don't run when I run rake spec
00:44 <+atmos> schwabsauce: i wrote custom spec tasks
00:44 <+atmos> and i just renamed my helper spec to have a _spec.rb suffix :)
00:45 <+schwabsauce> where can I find the file referred to by require 'spec/rake/spectask'
01:03 <+kenphused> ack... is anyone else seeing this error when updating gems from dm? HTTP Response 404 fetching
http://gems.datamapper.org/yaml01:04 <+atmos> kenphused: i use the sake scripts
01:05 <+kenphused> atmos: when i tried updating dm's sake scripts, i got an error that the dm site could not be reached... but my sake script was already deleted
01:06 <+rajasaurus_> kenphused: yeah me too
01:07 <+rajasaurus_> kenphused: just remove/comment it in ~/.gemrc
01:07 <+kenphused> rajasaurus_: thanks
01:07 <+rajasaurus_> the sake scripts are great for merb/dm
01:07 <+atmos> kenphused:
http://pastie.org/21766501:07 <+atmos> change ninja_srcs to wherever you want
01:08 <+atmos> i refresh every once in a while with that
01:08 <+atmos> oh shit, that's my dm one
01:08 <+rajasaurus_> ;)
01:08 <+kenphused> lol
01:08 <+kenphused> atmos: that's what i was looking for
01:09 <+atmos> kenphused: :P
01:09 <+atmos> kenphused: lemme know if it works
01:09 <+rajasaurus_> atmos: why do you rm ~/.sake
01:09 <+atmos> i have some weird errors that get thrown with sake when i uninstall everything
01:09 <+kenphused> atmos: will do... i am reinstalling sake now
01:10 <+atmos> we're using the dm-salesforce adapter wycats wrote, and for some reason sake barfs trying to include it after i uninstall
01:10 <+atmos> nuking sake was fine by me
01:10 <+atmos> i only really use it for merb/dm anyway
01:10 <+rajasaurus_> oooo dm-salesforce
01:10 <+rajasaurus_> is that public
01:10 <+digitaltoad> dm down huh
01:10 <+atmos> yeah
01:10 <+atmos> wycats/dm-adapters/salesforce
01:11 <+rajasaurus_> just found it
01:11 <+atmos> works pretty well for us
01:12 <+kenphused> looks like dm is down
01:13 <+atmos>
datamapper.org?
01:13 <+kenphused> atmos: yes
01:13 <+atmos> Forbidden!
01:13 <+atmos> yeah, just install from github
01:13 <+atmos> :)
01:14 <+kenphused> they had a catastrophic failure this past weekend, they must be fixing it permanently
01:14 <+atmos> datamapper or github ?
01:14 <+kenphused>
datamapper.org01:14 <+atmos> that sucks
01:21 <+wycats> rajasaurus: DM::Salesforce for the win
01:21 <+ngng> mr cats
01:21 <+wycats> :(
01:24 <+dalee> hey guys, is there an activesupport-like supplement to Merb that provides useful Time methods?
01:24 <+dalee> i would just use activesupport, but it provides some methods that will override the ones in merb, such as string camelcase
01:37 <+Damm> I'll fix dm.. with a hammer
01:37 <+Damm> vi .gemrc and remove it from your sources
01:37 <+Damm> because gem was too stupid to let me remove it using gem sources -r
01:37 <+Damm> yay rubygems!
01:37 <+Damm> oh btw, thin doesn't support "streaming" with the rack adapter in 0.9.3
01:37 <+Damm> *stab*
01:38 <+alisdair> I just install merb from source, and I'm getting this error:
01:38 <+alisdair>
http://paste.lisp.org/display/6245701:38 <+wycats> dalee: check out merb_helpers (/me cries)
01:39 <+wycats> we need to update the Time methods so that 1.month.ago actually works correctly :P
01:40 <+hassox> Damm: only mongrel supports stream_file
01:40 <+Damm> hassox, I noticed.
01:40 <+hassox> Damm: there are a couple of others that are mongrel only too ;)
01:41 <+Damm> hassox, well I loaded up thin with featherblog... wrote a new article and bam
01:41 <+Damm> you know after seeing featherblog on someones site, and then installing it
01:41 <+Damm> it really makes me hate datamapper
01:41 <+hassox> :(
01:41 <+Damm> because currently datamapper is such a bastage to install
01:41 <+Damm> even using sake... it's like please god just gem install!
01:42 <+fujin> eh? sake dm:clone && sake dm:install
01:43 <+Damm> gem install dm-core dm-more
01:43 <+Damm> ?
01:44 <+namelessjon> Damm: Apparently the proper gems will be out real soon now.
01:45 <+Damm> namelessjon, it's okay, I still love Sequel.
01:46 <+namelessjon> I never got (into) sequel.
01:46 <+Eleo> that's gay dude
01:46 <+fujin> anyone care to clarify
http://rafb.net/p/mSuRUJ94.html ?
01:51 <+rajasaurus_> wycats: salesforce adapter looks good, thanks :)
01:51 <+wycats> rajasaurus_: w00t
01:51 <+wycats> lemme know if you run into issues
01:52 <+wycats> I plan to add better support for custom objects later
01:52 <+wycats> :)
01:52 <+fujin> anyone know what my poor merb is doing?
01:52 <+wycats> for now they work, but you need __c everywhere
01:54 <+epitron> haha
01:54 <+epitron> wycats is a machine
01:57 * Damm doesn't see how tzinfo provides gmtime
01:57 <+Damm> but it's quite neat.
01:57 <+Damm> >> Timezone.get('Europe/Paris').friendly_identifier(true)
01:57 <+Damm> => "Paris"
01:58 <+fujin> heh
01:59 <+fujin> well I've definitely got tzinfo
02:02 <+roman> hello there
02:04 <+roman> Have anybody tried to install the github version of merb-(core|more) via rake install?, if so, how did you handle the merb_datamapper issue?
02:06 <+fujin> roman: sake :D
02:06 <+fujin> hrm, it looks like expiry is coming through as a DateTime instead of a Time?
02:07 <+fujin> .to_timing it didn't work
02:07 * fujin grinds
02:08 <+roman> uhmm... right!, I saw a post about some sakes that would help with the installation
02:09 <+Damm> roman, well sake helps... so does a regular ruby script
02:09 <+Damm>
http://gweezlebur.com/2008/3/1/quickie-sake-tasks-for-merb-hackers02:09 <+fujin> roman: unfortunately the dm site is down at the moment, so you'll have to grab it off git. sake -i
http://github.com/dkubb/dm-dev/tree/master%2Fdm-dev.sake?raw=true02:09 <+Damm>
http://datamapper.org/articles/stunningly_easy_way_to_live_on_the_edge.html02:10 <+fujin> then, sake dm:clone && cd dm && sake dm:install
02:10 <+Damm> that does work.
02:13 <+WALoeIII> how can I set the content type on a Merb::Mailer?
02:13 <+WALoeIII> I can't find a list of hash parameters I can pass
02:15 <+hassox> WALoeIII: in your mail controller
02:15 <+hassox> content_type = :xml
02:15 <+hassox> for eg
02:15 <+hassox> or just render_mail :format => :xml
02:15 <+WALoeIII> I don't have a mail controller
02:16 <+WALoeIII> I just have m = Merb::Mailer.new
02:16 <+WALoeIII> and then m.deliver!
02:16 <+hassox> dunno then... U usually use a mail controller
02:16 <+roman> guys this is weird, I did install the sakes from the urls you gave me, but didn't seem to work, after a cat in the .sake file, I think I know why is not working, check it out...
http://pastie.org/21769702:17 <+roman> is this familiar
02:17 <+roman> ?
02:18 <+Damm> right
02:18 <+Damm> so mkdir merb
02:18 <+Damm> run that command in the url
02:18 <+Damm> then sake merb:clone
02:18 <+Damm> then sake merb:install
02:19 <+Damm> sake -T will display the tasks available
02:19 <+roman> yeah I see that... the thing is that the tasks implementations are empty in the .sake file
02:19 <+fujin> I don't even have a .sake
02:19 <+roman> so when I do
02:19 <+roman> sake xxx
02:19 <+fujin> did you sake -i it?
02:19 <+roman> it just do nothing
02:19 <+roman> yeap
02:19 <+roman> let me check versions
02:19 <+roman> just in case
02:19 <+roman> (of sake)
02:20 <+elux> what is sake?
02:20 <+fujin> oh, yes I do
02:20 <+fujin> I lied.
02:20 <+fujin> roman: doesn't look like it installed correctly
02:20 <+fujin> elux: system wide rake
02:20 <+elux> hrmm.. interesting.. what would it be used for?
02:20 <+roman> fujin: let me delete the .sake file (not that is anything important there) and let me try again
02:21 <+roman> elux: lot's of things...
02:21 <+elux> is this something that merb (/ merb developers) introduced?
02:21 <+fujin> elux: being lazy, mostly
02:21 <+fujin> elux: not at all
02:21 <+roman> noe...
02:21 <+roman> nope
02:21 <+roman> nothing...
02:21 <+fujin> that's bogus
02:21 <+elux> interesting. ill install it and see what its all about. thanks
02:21 <+roman>
http://pastie.org/21769702:22 <+fujin> elux: in this particular case it m akes it extremely easy to 'live on the edge'
02:22 <+elux> for rails/merb?
02:23 <+fujin> merb
02:24 <+elux> awesome. thanks
02:24 <+elux> btw. is there much news on erza's vertebra? it sounds like a wicked project. id love to try it out
02:24 <+fujin> no idea sorry
02:24 <+elux> from what i understand it uses erlang to setup a server for messaging, for the purpose of sharing a global object space between instances of an application
02:25 <+elux> for ruby apps.. rails/merb
02:25 <+elux> gotcha
02:42 <+TheWordNerd> I'm having a very strange problem in Merb's interaction with Datamapper. I have a standard new model action that calls Model.new then renders. In the action, @model.errors is empty. In the view, it isn't.
02:43 <+TheWordNerd> The result is that, when I load my new model form, I get a "form submittal failed because of two errors." There isn't even any data to fail on.
02:44 <+TheWordNerd> @model.errors is an array of two empty arrays. Any idea how to debug this?
02:44 <+TheWordNerd> I tried hooking before(:save) in the model and having it send something to Merb.logger, no dice.
02:58 <+TheWordNerd> Is there anything like the old rails breakpointer in merb?
03:02 <+jackdempsey> merb -D
03:02 <+jackdempsey> have you used ruby-debug
03:02 <+TheWordNerd> No.
03:02 <+TheWordNerd> I'll check it out, though. Thanks.
03:03 <+jackdempsey> k, so thats what i believe rails is using as well
03:03 <+jackdempsey> just throw a 'debugger' call where you need it, make sure you've started with merb -D and you should be good
03:03 <+jackdempsey> (will have to install the gem as well of course)
03:28 <+fujin> ehm, so HEAD broken for anyone else currently?
03:28 <+fujin> /usr/lib/ruby/gems/1.8/gems/merb-core-0.9.4/lib/merb-core/core_ext/virtual_file.rb:2: uninitialized constant StringIO (NameError)
03:29 <+fujin> lolwut I must have broken my ruby somewhere, that's a standard class
03:29 * fujin looks around sheepishly
03:30 <@ezmobius> nah there could be a missing require
03:31 <+alisdair> i get the same error
03:31 <+alisdair> installed from head this afternoon
03:32 <+fujin> sweet
03:33 <@ezmobius> fixing
03:33 <+fujin> awesome
03:38 * fujin glares at wycats_afk
03:38 <+fujin> :D
03:38 <@ezmobius> man github wont let me commit right now for some reason
03:38 <+fujin> what the shit
03:45 <+smerickson> hi all, does anybody know of any tutorials for getting merb running on fastcgi and apache?
03:46 <+fujin> why not just apache proxy it to mongrel?
03:46 <+fujin> or thin, or whatever
03:46 <+fujin> it's the onlyway to rolllll
03:46 <+smerickson> this is just a really small webservicey type script that doesn't need to be running all the time in the background
03:46 <+smerickson> i'd like to just have it boot up when it needs to be executed
03:47 * fujin prods wycats
03:48 <+fujin> smerickson: sorry, I know that was unconstructive - I've never really tried to dow hat you're doing
03:49 <+smerickson> no worries fujin
03:49 <+fujin> but uh, if you've got fcgi up and running, should just be a matter of making a /usr/bin/env ruby script..
http://pastie.org/21775003:50 <@ezmobius> there's a merb.fcgi in the public dir of your merb app
03:50 <@ezmobius> just point apache at it
03:50 <+fujin> there ya go
03:50 <+smerickson> ah cool. i should've used the full app generator.
03:50 <+smerickson> i was just using the flat and very flat generators
03:51 <@ezmobius> theres some issues with flat apps and fcgi right now
03:51 <@ezmobius> full apps work fine though
03:52 <+smerickson> ezmobius: oh. good to know. any idea when that might be fixed?
03:52 <+fujin> ezmobius: any eta on the StringIO issue?
03:53 <@ezmobius> as soon as i can comit to github ill put it in there
03:53 <+fujin> what's github doing? l ol
03:53 <@ezmobius> for now you can add require 'stringio' to that virtual_file.rb
03:53 <@ezmobius> not sure its failing at the last minute
03:54 <+fujin> cool
03:54 <+fujin> ta
04:01 <+smerickson> ezmobius: any ideas for how i might be of help resolving the flat apps and fastcgi issues?
04:03 <@ezmobius> im not really sure of the issue really. i'd say get your normal merb app running on fcgi and then try it out on a flat app and let me know what problems you run into
04:04 <+smerickson> ok. i'll try it out tomorrow at work and see what i run into
04:05 <@ezmobius> cool, i'd love to get that fixed, but i dont really have any apache setups to test on right now
04:06 <+roman> Hey...
04:07 <+wycats> fujin: ?
04:07 <+wycats> smerickson: what flat app iseeus?
04:07 <@ezmobius> fcgi
04:07 <@ezmobius> wycats: i cannot commit to merb-core
04:08 <@ezmobius> can you add a require 'stringio' to the top of virtual_file.rb and commit?
04:08 <+roman> does link_to method should be declared on merb_helpers?, I'm asking because I have used the sakes to install the bleeding edge and... when I acess the merb_helpers folder there is no link_to method declared there... I created a sample project, did some merb-gen resource, and now it throws exceptions with the link_to in the views
04:08 <@ezmobius> turns out you do need it
04:08 <@ezmobius> roman: require 'merb-assets'
04:08 <+roman> cool
04:08 <+roman> ezmobius: thanks, I'll try that
04:19 <+wycats> ezmobius: you said we already required stringio
04:19 <+wycats> ezmobius: done
04:20 <+wycats> what do you mean you can't commit?
04:20 <+wycats> ezmobius: require "merb-assets" should be in the topic
04:37 <+ojak> trying to get started on datamapper. is
datamapper.org still around?
04:37 <+ojak> or has it been moved elsewhere?
04:38 <+erso> it's just down
04:39 <+ojak> unlucky timing I guess. thx.
04:42 <+Eleo> i tried dm the other day. i think one of its dependencies doesn't install on windows
04:44 <+ojak> Eleo: dm-more... yeah, its broken for gem install, but you can still compile from source.
04:44 <+Eleo> naw there was something else besides that
04:44 <+Eleo> data objects maybe
04:44 <+Damm> it's all on github
04:44 <+Damm> would you like the .sake?
04:44 <+ojak> oh, right. i think you neeed extlib now
04:45 <+jackdempsey> yep
04:45 <+jackdempsey>
github.com/sam/extlib i believe
04:45 <+Eleo> was ist .sake
04:45 <+Damm>
http://www.livid.dk/~damm/dm-dot-sake04:45 <+Damm> put that into your $HOME dir as .sake
04:45 <+Damm> win!
04:45 <+fujin> hey, how can I log stuff to my merb console?
04:46 <+Damm> so my 1hour of annoyances with getting dm working wasn't to complete failure.
04:47 <+Eleo> lol
04:47 <+ojak> damm nice.
04:47 <+Damm> i'm serious
04:47 <+Damm> I dived into featherblog... and found tons of pain
04:47 <+Damm> I first tried git clone off of github... then I did sake... then it was ParseTree failure
04:48 <+Damm> then I found out that only Mongrel supports "streaming"
04:48 <+Damm> so using thin was a failure
04:48 <+jackdempsey> what do you mean thin was a failure?
04:48 <+wycats> Damm: what platform are you using that parsetree failed on
04:48 <+Damm> I ended as it's not ready yet.
04:48 <+Damm> wycats, featherblog demands ParseTree 2.0, where as sake wants newer.
04:48 <+Damm> that's the failure
04:49 <+jackdempsey> you know.....if we just kept everything at one point doh we'd never have these problems....
04:49 <+Damm> I know I can have 2 versions of ParseTree installed, it's just iffy
04:49 <+jackdempsey> :-D
04:49 <+Damm> reminds me of having rails 1.2.6 installed w/ rails 2.0... trying to get a rails 1.2.6 app working
04:49 * Damm twitches
04:49 <+fujin> Merb.logger.debug("blahblah") < - should I see that on my console?
04:50 <+wycats> Damm: ugh
04:51 <+Damm> wycats, I run an old version of typo... I refuse to upgrade because they have countless bugs that infuriate me... with the introduction of rails 2.0
04:51 <+Damm> so in order to use new rails apps, as well as old..
04:51 <+Damm> I just decided to have multiple ruby installs
04:52 <@ezmobius> fujin: Merb.logger.debug!("blahblah")
04:52 <+fujin> oic.
04:52 <+fujin> ta
04:52 <@ezmobius> the ! makes it write right away
04:52 <@ezmobius> otherwise it gets buffered nd output once per request
04:53 <+fujin> ezmobius: and I should see that on the cli `merb`?
04:53 <@ezmobius> yeah you should afaik
04:53 <+Damm> or in your logfile
04:53 <+Damm> if you merb -d
04:54 <+fujin> ah. see it now
04:54 <+fujin> was throwing an exception before my shit actually got hit
04:56 <+jackdempsey> man, i just have to say csi miami is so horrible
04:57 <+jackdempsey> and yet the channel stays the same..
04:57 <+cilquirm> hi, can someone help me figure out namespaced controllers?
04:57 <+cilquirm> i have a controller called Admin::Users
05:00 <+cilquirm> should i not be namespacing controllers like that
05:03 <+jackdempsey> i haven't done namespaced controllers with merb but what problems are you experiencing?
05:08 <+cilquirm> jackdempsey: i can't seem to find my way to the actual controller...
05:08 <+cilquirm> i even added a r.resources :users, :namespace => '/admin'
05:08 <+cilquirm> to router.rb
05:08 <+jackdempsey> have you looked at name........ok guess you have :-)
05:09 <+jackdempsey> and you have a folder named admin/ and users under it?
05:09 <+cilquirm> yeah, i have /app/controllers/admin/users.rb
05:10 <@ezmobius> r.match('/admin') do |admin|
05:10 <@ezmobius> admin.resources :blogposts
05:10 <@ezmobius> end
05:10 <@ezmobius> or
05:10 <@ezmobius> r.namespace :admin do |admin|
05:10 <@ezmobius> admin.resource :foo
05:10 <@ezmobius> end
05:10 <+jackdempsey> thx ez sry cilquirm i assumed that was the structure you're using?
05:11 <+cilquirm> ah, thanks ez
05:11 <@ezmobius> np
05:11 <+cilquirm> is one way preferable to the other?
05:11 <@ezmobius> the second is cleaner to me
05:11 <+jackdempsey> ya
05:12 <+hassox> I think the second way also looks in a namespaced controller, where the first way doesn't
05:12 <+hassox> I *think* that's the case anyway
05:21 <+fujin> I don't suppose there are any DM experts around that could take a quick look at an issue I'm having?
http://pastie.org/21777905:21 <+GitHub155> merb-core: Ezra Zygmuntowicz master SHA1-ea2bbe5
05:21 <+GitHub155> Merge branch 'master' of g...@github.com:wycats/merb-core
05:21 <+GitHub155>
http://github.com/wycats/merb-core/commit/ea2bbe5109bec44582fdce672c64e41118c2247305:21 <+fujin> doesn't wanna read a DateTime out of me database.
05:22 <+ben__> quit
05:25 <+m7d> any know why radio_control might be undefined when text_control is not?
05:26 <+wycats> ezmobius: what did you just push?
05:26 <@ezmobius> nothing, just the merge of your push to test if i could commit
05:27 <@ezmobius> mojombo fixed it for me
05:27 <+wycats> I don't understand what went wrong
05:27 <@ezmobius> permissions issue from adding new slices to the github cluster
05:29 <+wycats> ah
05:32 <+m7d> never mind, i see that radio_control is no longer available on edge, but radio_group_control is, the docs at merbivore are stale
05:33 <+m7d> radio_group_control works fine
05:34 <+wycats> m7d: radio_control should still work
05:34 <+m7d> it isn't in the source anymore according to textmate project find on the git repos for the merb-helpers gem
05:35 <+m7d> it was bombing in my project as undefined, but text_control was fine
05:35 <+FH> -> gem install merb-jquery, is this stale?
05:35 <+m7d> radio_group_control is in there though
05:35 <+FH> is jquery now in merb-more?
05:35 <+m7d> i did a fetch before this started happening and first uninstalled my merb_helpers gem
05:36 <+m7d> fetched after uninstalling merb_helpers that is and re-installed merb_helpers...text_control available, radio_control not
05:37 <+wycats> m7d: are you using the refactor branch?
05:37 <+m7d> let me check
05:37 <+wycats> that branch def. has it
05:37 <+wycats> but it's not quite ready yet
05:37 <+m7d> no, master
05:37 <+wycats> k
05:37 <+m7d> weird huh
05:37 <+wycats> hold off a day or two :)
05:38 <+wycats> It didn't occur to me that master didn't have it
05:38 <+wycats> I just added it
05:38 <+m7d> i am digging radio_group_control anyways, i had never used it
05:38 <+wycats> heh yep :)
05:38 <+wycats> I think I improved it
05:38 <+m7d> the label thing is cool per value, very nice!
05:38 <+wycats> in the refactor branch :)
05:38 <+wycats> cool per value
05:38 <+wycats> ?
05:38 <+m7d> :value => foo, :label => 'foo'
05:39 <+wycats> lemme look at the new one
05:40 <+wycats> the new one is radio_group_control :foo, {:name => ..., :value => ...}
05:40 <+wycats> and it compares the value against @obj.foo
05:43 <+m7d> yes, that is what i am using now and it works beautifully, i love it
05:45 <+m7d> wycats: thanks
05:46 <+wycats> cool... the refactor branch makes it super-easy to customize forms (like Rails form builders)
05:46 <+wycats> should be released anytime now
06:14 <+mattetti>
http://wiki.merbivore.com/ down
06:15 <+fujin> up.
06:16 <+mattetti> fujin: it loads for you?
06:19 <+jackdempsey> nah still down for m
06:19 <+jackdempsey> e
06:21 <+FH> guys, I can't find merb-jquery anywhere, any pointers plz?
06:21 <+mattetti> github
06:22 <+mattetti> look for it or look in ivey's stuff
06:22 <+jackdempsey> its in merb-more FH
06:22 <+FH> oh ok thanks
06:22 <+jackdempsey> if you haven't looked at it before, don't expect a ton, its more for making the writing of jQuery easy
06:23 <+FH> k
06:25 <+jackdempsey> mattetti: i think the internets are rebelling against merb
06:25 <+jackdempsey> i think merb.lighthouseapp is down as well
06:26 <+mattetti> lighthouse is down
06:26 <+mattetti> they are working on it
06:27 <+jackdempsey> ah yea thats right they had that message up before
06:28 * jackdempsey kicks the gerbils at wiki.merbivore
06:29 <+Kriyasurfer> jackdempsey: hey, you were the one who ported attachment_fu for merb, right?
06:29 <+mattetti> any ex-php developers who would like to tell me what they liked the most when they switched to Ruby. (and if there is something they miss sometimes)
06:29 <+jackdempsey> Kriyasurfer: i actually took attachmerb_fu from someone elses original port and pulled it into github
06:29 <+jackdempsey> and have applied some work from others in the meantime
06:30 <+Kriyasurfer> jackdempsey: gotcha. No one has tried S3 yet?
06:30 <+jackdempsey> haven't had a lot of time unfortunately to work on it myself
06:30 <+jackdempsey> nope but if you have some ideas and want to fork from me i'll certainly look at patches
06:30 <+jackdempsey> mattetti: i suppose i miss the simplicity of deploying things and running apps
06:31 <+jackdempsey> you didn't really have the same issues with gem dependencies etc
06:31 <+Kriyasurfer> Well, if it works out of the box, then no biggie. I'll do a fork and upload fixes if need be for S3
06:31 <+jackdempsey> cool
06:31 <+jackdempsey> mattetti: as far as what i liked.....the language is just so much better in so many ways
06:32 <+Kriyasurfer> mattetti: Passing blocks blew my mind. I loved it. DSLs were awesome.
06:32 <+jackdempsey> not sure how much you're lookin for here...but as matz has talked about, its really just more enjoyable to code in ruby
06:32 <+Kriyasurfer> mattetti: deploying was less an issue for me. I actually wrote a half-assed deployment framework for some Joomla installs... if I had to do it over again, I'd just use straight-up Capistrano for PHP deployments.
06:34 <+Kriyasurfer> mattetti: I do not miss the illusion of "easy" deployment with PHP -- a lot of PHP stuff I've seen weren't back by SCMs at all. Hell, some of my personal stuff running MediaWiki isn't done that way.
06:34 <+jackdempsey> i think often errors were easier to track down....
06:34 <+jackdempsey> just a general 'feel' on that
06:35 * Booster liked that it wasn't PHP when he switched
06:35 <+jackdempsey> hehehe
06:35 <+mattetti> :) thanks guys
06:36 <+jackdempsey> writing an article or something?
06:36 <+Kriyasurfer> Heheh
06:37 <+mattetti> jackdempsey: I'm preparing a course
06:37 <+jackdempsey> ah cool
06:37 <+mattetti> I try to capture what got us into Ruby
06:38 <+jackdempsey> yea
06:38 <+mattetti> what is the essence of Ruby love
06:38 <+jackdempsey> i think of lot of it at first is "its fun, its cool, omg 5.times is weird and i like it"
06:38 <+jackdempsey> and then you learn more and realize how powerful the language can be
06:39 <+jackdempsey> and then you learn more and realize method_missing isn't something to strive for :-)
06:39 <+mattetti> :) what would push you back to your former lover?
06:40 <+jackdempsey> i'm not sure there's something that would
06:40 <+jackdempsey> i'd like to say "500k a year plus a ferrari"
06:40 <+mattetti> hehe
06:40 <+jackdempsey> but i reaaaaally don't want anything to do with php anymore :-)
06:40 <+jackdempsey> every now and then i do a little bit for someone
06:41 <+epitron> it's a trap!
06:41 <+epitron> with php you won't have time to enjoy your ferrari
06:41 <+jackdempsey> and i find myself writing "$array.each do...........oh shit...........@#*$#(#"
06:42 <+Booster> wait, you get past "<?php" without bitching? you sir have more self control than I
06:43 <+cilquirm> how do you restrict a method to only get and post?
06:43 <@ezmobius> it's all about the blocks, pretty much
06:43 <+cilquirm> i mean, get _or_ post
06:43 <+mattetti> ezmobius: blocks made you fall in love?
06:43 <+jackdempsey> +1
06:44 <+mattetti> ruby, show me your blocks
06:44 <+jackdempsey> i remember what i had to do with the old custom php framework we had at an old job
06:44 <@ezmobius> "Ruby, she'll knowck you block off"
06:44 <+jackdempsey> heheh
06:44 <@ezmobius> knock your
06:45 <+jackdempsey> callbacks were this cool new feature..
06:45 <+erso> blocks are a big one
06:46 <+mattetti> I'm surprised not a simple php guy mentioned testing, I guess my expectations are not met :(
06:46 <+jackdempsey> testing?
06:46 <+jackdempsey> what is this testing you speak of?
06:46 <+jackdempsey> (we did NO testing at my php shops :-( )
06:46 <+jackdempsey> "login screen showed?" 'yes' "cool, ship it"
06:46 <+mattetti> jackdempsey: hence me expecting people to love ruby for unit test and then rspec
06:47 <+jackdempsey> ohh i see
06:47 <+jackdempsey> well thats less about the language tho
06:47 <+jackdempsey> and more whats come with it in my experience
06:47 <+jackdempsey> and i still have to fight to get tests written
06:48 <+mattetti> jackdempsey: well, I did some PHP and that's something I hated... no testing framework
06:48 <+jackdempsey> yeah
06:48 <+jackdempsey> i guess i didn't think about it in that way given that we just didn't do any in php
06:48 <+jackdempsey> but looking back on it now
06:48 <+jackdempsey> that would have made a big difference :-)
06:50 <+mattetti> jackdempsey: interesting first result when looking for an image of a ruby @ google
http://images.google.com/images?um=1&hl=en&safe=off&q=ruby&btnG=Search+Images06:50 <+jackdempsey> :-D
06:51 <+jackdempsey> interesting 18th image
07:08 <+alisdair> i was playing with merb on jruby/glassfish earlier
07:09 <+alisdair> why don't any of the ruby appservers make deployment that easy?
07:26 <+cilquirm> how do you restrict a method ( like save or new ) to be POST or GET only?
07:27 <+cilquirm> i know i saw it somewhere on the internet.. and i'm having a dickens of a time finding it again
07:27 <+jackdempsey> alisdair: have you looked at passenger (mod_rails) ? maybe that would fit your needs/
08:16 <+carllerche> Anybody alive?
08:16 <+dbussink> i think i'll qualify for living
08:17 <+carllerche> I have a whole bunch of controller mixins. I encapsulate a lot of concepts into their own files... what's a good directory to put them in?
08:17 <+dbussink> controller mixins?
08:17 <+dbussink> what do they do?
08:17 <+carllerche> just a bunch of utility methods for my app
08:17 <+carllerche> like, deals with access / permissions
08:18 <+dbussink> i usually use lib/ for that kind of stuff
08:18 <+carllerche> commentable controller, etc...
08:18 <+dbussink> and load it in init.rb
08:18 <+dbussink> the default init.rb adds it to the load patch
08:18 <+dbussink> path
09:08 <+FH> guys I'm trying to run through the
http://merb.4ninjas.org/ book for merb using orm_datamapper anyone know why rake dm:db:auto_migrate would not work?
09:14 <+namelessjon> FH: what does it say (when you try to run it)
09:15 <+jeckel> FH: use rake dm:db:automigrate
09:15 <+FH> namelessjon: it returns "Dont know how to build task"
09:15 <+FH> ok once sec
09:17 <+FH> is there a equivalent db:create rake task in merb?
09:17 <+jeckel> there is no db related stuff in merb. those things would be in the orm you choose to use
09:18 <+FH> ok thanks jeckel
09:18 <+namelessjon> FH: There isn't yet for merb_datamapper, but there have been some requests, so I might try and add one in. :)
09:19 <+FH> that would be helpfull thanks, I'm finding ( I'm aware that the baseline is moving very fast) the documentation for examples very stale very quickly :(
09:20 <+namelessjon> FH: Also, was the task namechange the fix that was needed? If so, I'll go and amend the book :)
09:21 <+FH> one sec i'll create the db and check for you
09:23 <+FH> namelessjon: yes "rake dm:db:automigrate" works after the db has been created
09:23 <+namelessjon> FH: Damned typos, sorry about that. :)
09:24 <+FH> it happens ;), would it be possible to throw a comment into the database.yml.sample about it for instance?
09:25 <+FH> actually maybe not the right place for it, depends on your orm I guess
09:25 <+namelessjon> FH: Comment about what? Sorry, I'm not fully awake yet
09:26 <+FH> about the rake db:automigrate was my thinking, but on sec thoughts...
09:26 <+namelessjon> FH: Oh, I was going to correct the book for that :)
09:27 <+FH> ok great!!
09:27 <+namelessjon> Though, if you run 'rake -T' that gets you a list of tasks
09:27 <+FH> ah !! :)
09:27 <+jeckel> namelessjon: are you the one writing that book?
09:28 <+namelessjon> jeckel: It's a group effort. I've contributed to it though.
09:34 <+rboyd> I'm a merb noob.. I just grabbed 0.9.4 and when I try to hit the index view on my resource, I get "undefined method link_to"
09:35 <+rboyd> I read that I needed to add merb-assets to my depends, but I've done that to no effect
09:35 <+jeckel> use require instead
09:36 <+rboyd> in init.rb?
09:36 <+jeckel> yeah
09:36 <+rboyd> that worked .. why?
09:36 <+jeckel> depends has some issues
09:37 <+rboyd> ok, thanks
09:37 <+jeckel> np
09:41 <+techthumb> hello all .... can someone tell me if merb trunk supports markaby?
09:44 <+jeckel> merb is agnostic when it comes to templating languages
09:44 <+techthumb> anyone here ?
09:45 <+techthumb> i c .... but if i create a .mab file, i get an error
09:45 <+jeckel> ^^
09:53 <+techthumb> ~ Could not find template at /HelloWorld/app/views/Blah/_form.html.* - (Merb::ControllerExceptions::TemplateNotFound)
09:53 <+techthumb> ok .... thats the error i get
09:53 <+techthumb> the file have _form.html.mab exists
09:54 <+techthumb> if i rename _form.html.mab to _form.html.erb then everything works fine
09:54 <+techthumb> but i want to use markaby
09:54 <+techthumb> thoughts? anyone?
09:55 <+jeckel> you need a bridge like merb-haml so that merb knows what to do with your markaby files. Take at look at the merb-haml on github and perhaps write one.
09:55 <+jeckel> I'm sure people would appreciate it
09:55 <+rboyd> I just got haml doing throw_content
09:55 <+rboyd> haml rocks my socks
09:58 <+techthumb> any technical reasons one would prefer haml over markaby? or is it a matter of personal choice
10:00 <+rboyd> probably comes down to choice
10:00 <+jeckel> haml is faster
10:00 <+namelessjon> techthumb: haml is faster, I think. But mostly it's personal preference.
10:01 <+techthumb> great, thanks for your help
10:02 <+jeckel> np
10:11 <+jnicklas> So I'm still working on a new generator ;) It's coming along nicely, I'm happily generating models and controllers, however I am still very unsure about part of the API
10:13 <+jnicklas> Basically I've set it up so that generators are grouped into manifolds, where each manifold maps a name for a generator (like 'model' to an actual Generator class (like Merb::ComponentGenerarots::ModelGenerator
10:14 <+jnicklas> Generators themselves can invoke other generators, but I feel they should be selfcontained. Should generators invoke other generators by name, or by full class name?
10:17 <+beawesomeinstead> guys, does anyone know is it possible to freeze DM in Merb/gems like activerecord? I noticed that do_mysql and merb_datamapper build extensions
10:17 <+beawesomeinstead> ?
10:19 <+namelessjon> beawesomeinstead: If your dev and production machines have the same architecture, it should work. If not, then I don't think you can.
11:31 <+techthumb|away> test
13:15 <+kupa> myabc: merb_global rake install task is not able to install gem
13:16 <+kupa> myabc: sh %{#{SUDO} gem install pkg/#{NAME}-#{VERSION}} -> sh %{#{SUDO} gem install pkg/#{NAME}-#{GEM_VERSION}}
13:35 <+techthumb> ping
13:35 <+namelessjon> techthumb: pong?
13:37 <+deimos1986> Hey guys I have a weird bug, and was wondering if anyone has seen this before? The body of the response is being displayed on the page see:
http://pastie.org/private/9synctoc3awpqgo7kq2mlg13:40 <+aczid_> hello, I was wondering what's going on with rake tasks in merb. in 0.5 I had a lib/tasks dir that worked fine and could even use my orm. now I only see a reference to custom rake tasks in the Rakefile in the project root and it can't use my orm :/
13:41 <+aczid_> is there a better place to put task-like code that needs the db?
13:54 <+aczid_> I'm resorting to using the merb script-runner in a rake task, and added a line in the rakefile to enable a rails-style rake tasks folder
14:01 <+deimos1986> um, merb is sending me a status code of 0 with requests
14:25 <+abababa> hello, i'm experimenting with the slapp tutorial and I get a undefined method `time_output' for Merb::Helpers::DateAndTime:Module
14:25 <+abababa> i'm using merb-0.9.3
14:25 <+abababa> any ideas?
14:41 <+abababa> i found a ticket
14:41 <+abababa> but i didnt understand alot :(
14:44 <+abababa> anyone here?
15:04 <+abababa> okie
15:04 <+abababa> either slapp tutorial must change
15:04 <+abababa> or the definition of time_output
15:10 * abababa is away.. Five minute autoaway. No messages will be saved.
16:34 <+djwonk> according to the specs, checkbox_control and radio_control put a label on different sides in their default behavior
16:35 <+jackdempsey> are you looking at current helpers or the refactored branch?
16:35 <+djwonk> merb_helpers_spec.rb lines 395 vs 241
16:35 <+djwonk> jackdempsey: not sure, which is which?
16:36 <+jackdempsey>
http://github.com/wycats/merb-plugins/commits/helpers_refactor16:36 <+jackdempsey> thats the new stuff
16:37 <+djwonk> jackdempsey: thanks, i was just using the sake tasks
16:38 <+jackdempsey> cool
16:38 <+djwonk> jackdempsey: have you tried the new branch? know when it will be rolled back?
16:38 <+jackdempsey> i haven't personally i know GMFlash has been chatting with wycats about it
16:38 <+djwonk> or rolled into master i mean
16:38 <+jackdempsey> not sure about timing but i feel like its come along well
16:38 <+jackdempsey> heh yea
16:40 <+djwonk> jackdempsey: cool, i'll check it out, thanks
16:40 <+jackdempsey> np!
16:48 <+vices> is anyone familiar with this error? 'People#show should return not found if @person id does not exist' FAILED expected Merb::ControllerExceptions::NotFound, got #<NoMethodError: undefined method `call' for #<People:0xb75ec0b0>>
16:48 <+jackdempsey> that looks like something from rspec
16:48 <+jackdempsey> just showing up in a normal app stacktrace?
16:49 <+vices> oh, it shows up when i run a spec
16:49 <+vices> good call, i'll head over there :)
16:49 <+jackdempsey> cool, gl!
16:49 <+vices> ty!
16:58 <+GMFlash> djwonk: new branch works well, pretty much a drop-in replacement, only thing that needs to be finished is the checkbox_field/control and error_messages_for
17:00 <+djwonk> GMFlash: thanks, i'm just using radio buttons, getting the "undefined method tag" error .. any ideas on how to fix?
17:03 <+djwonk> GMFlash i'm using a text area too, that is actually what is causing the problem
17:10 <+yipstar> anyone ever not see requests showing up in their logs in production mode
17:11 <+manu_> I actually don t see them in general :) I only see errors in the log in production mode
17:12 <+jackdempsey> yeah thigns dong' log in prod mode by default at leat the same way
17:14 <+yipstar> i've even tried starting with -l debug
17:15 <+yipstar> not even a request gets logged
17:21 <+manu_> have you looked in the environments/production.rb?
17:21 <+dalee> hey guys, it seems like merb depends on activesupport. will this also be in the future? (can I rely activesupport always being there)
17:21 <+yipstar> manu_: ah
17:21 <+manu_> yistar: it is set to error by default
17:21 <+yipstar> maybe the -l switch doesn't ovveride that
17:21 <+yipstar> ty
17:23 <+manu_> maybe the -l does not work with production mode
17:28 <+yipstar> anyone know how to render js from an action
17:28 <+TheWordNerd> In ruby-debug, is there any way to catch modifications of an object?
17:29 <+TheWordNerd> Something is setting @model.errors to bogus values. If I comment out a "layout" call in one of my controllers, the problem goes away. I have *no* clue what might be causing that. :)
17:30 <+carllerche> #url doesn't generate a URL, it generates a path. Shouldn't #url generate a full URL and have a method #path generate just the path?
17:32 <+manu_> TheWordNerd: you can display a variable after each next (like GDB) I believe
17:32 <+manu_> TheWordNerd: can you pastie your code?
17:32 <+dalee> yipstar: merb can explicitly render a certain format, or automatically detect the format. which are you trying to do?
17:33 <+TheWordNerd> manu_: I could, but I'm almost wondering if it'd just be easier to point to my git repository. What code do I paste? The controller? Layouts? Model?
17:34 <+yipstar> dalee: explicitly render js
17:34 <+yipstar> i want to update a div with a rendered erb partial
17:34 <+manu_> TheWordNerd: the code that is calling layout
17:35 <+dalee> yipstar: do you want to render from within the controller (ie: via helper method) or use a template within the /views folder?
17:35 <+TheWordNerd>
http://pastie.org/21813417:35 <+dalee> yipstar: or is it a static file?
17:36 <+dalee> yipstar: or do you want it to be auto-detected whether it's static, template, or to_js?
17:37 <+TheWordNerd> I'm using the technique described here:
http://wiki.merbivore.com/pages/nested-layouts Only difference is that I modified the line to read "redner :layout => "application"" rather than 'render "", :layout => "application"' because the blank string renders nothing.
17:37 <+manu_> TheWordNerd: Does it show model.errors on every pages with bogus information?
17:37 <+yipstar> dalee: it's a one liner js update call, so if i could return the js from the controller that would be best
17:37 <+yipstar> however i need to return a partial that lives in my views /
17:38 <+TheWordNerd> manu_: On the new/edit pages, yes. Which is strange, since the new page has a blank model.
17:38 <+dalee> yipstar: are you coming from a rails background?
17:38 <+carllerche> the coffee shop I'm at blocked the nginx website because it's a "hacking" website
17:38 <+TheWordNerd> @template.errors.empty? is true before rendering, but is false by the time the error_messages_for call is reached. But if I comment out 'layout "account"' in Templates, the problem vanishes.
17:38 <+yipstar> dalee: yes
17:38 <+dalee> yipstar: what do you mean by rendering js?
17:39 <+dalee> yipstar: I thought you meant that you wanted to send the client a .js file
17:39 <+yipstar> sorry, i mean just returning js from an action that gets executed
17:39 <+dalee> yipstar: but it seems like you actually want to send the client an HTML partial
17:39 <+dalee> yipstar: js is a .js file
17:40 <+TheWordNerd> And @template.errors is set to 2 empty arrays on model creation, so I just get the "form submittal failed because of 2 problems" message and two empty <li>s.
17:40 <+manu_> TheWordNerd: the problem may come from the nesting. Wonder if it cause some side effect on ActiveRecord
17:40 <+dalee> yipstar: do you want to send the client a .js file, or a partial that responds to an AJAX call?
17:40 * TheWordNerd is using DM.
17:41 <+TheWordNerd> Well, I'm continuing to look at this, but the code is available from git://
thewordnerd.info/bookme. Also needs merb-auth from git://
github.com/thewordnerd/merb-auth.
17:41 <+manu_> TheWordNerd: ok
17:41 <+yipstar> dalee: i'll settle right now to just return an alert('test'); back from the request that gets executed to take a step in the right direction
17:42 <+Kriyasurfer> Saving things into session is just accessing session[:key] = right?
17:42 <+TheWordNerd> I'm stepping through line-by-line, trying to figure out at what point @template.errors.empty? becomes false.
17:42 <+TheWordNerd> To duplicate, create an account then hit /templates/new.
17:42 <+manu_> When you try to put the same line render '',:layout =>'application' do you get the error too?
17:42 <+dalee> yipstar: you can just do this: def my_action; "alert('test');"; end
17:42 <+namelessjon> TheWordNerd: Which version of DM?
17:43 <+TheWordNerd> Edge.
17:43 <+dalee> yipstar: in merb, all actions send to the client the returning value
17:43 <+namelessjon> How edge? (though I can't actually think of validation commits recently, so)
17:43 <+Kriyasurfer> dalee: heh, no wonder I got some weird errors the other day. That's interesting.
17:44 <+TheWordNerd> if I use render "" nothing is rendered other than the layout.
17:44 <+dalee> Kriyasurfer: it's one of the best decisions merb made
17:44 <+dalee> i think other frameworks use that approach as well
17:44 <+Kriyasurfer> dalee: It makes a lot of sense. Had to give up some of the things I was used to in Rails, but yeah, it makes sense.
17:45 <+Kriyasurfer> dalee: you wouldn't happen to know how to set session values in a controller, do you?
17:46 <+dalee> session[:key] = value doesn't work?
17:46 <+yipstar> dalee: ok i've managed to figure out that if i have an action def myaction; render; end and a view file named myaction.js.erb it is returned to the client from my ajax call and executed
17:47 <+yipstar> now i'd like in myaction.js.erb to be able to render a partial to return some content
17:47 <+Kriyasurfer> dalee: just checking, thanks
17:48 <+dalee> yipstar: merb's #partial behaves like rail's #render :partial => blah
17:48 <+Kriyasurfer> yipstar: though you have to use :with => instead of :as =>
17:48 <+yipstar> dalee: the partial call (<%= partial => 'some_partial' %> is looking for views/mycontroller/_some_partial.js.*
17:48 <+yipstar> not the html
17:49 <+dalee> partial 'some_partial', :format => :html
17:51 <+yipstar> victory, thanks guys, really appreciate the help
17:51 <+yipstar> sorry i'm a rails dork
17:57 <+manu_> yipstar: a lot of us were ;)
18:00 <+yipstar> manu_: :)
18:00 <+namelessjon> TheWordNerd: Where is merb_tlsmail?
18:01 * namelessjon is trying to install bookme to see if I can work out the problem
18:02 <+TheWordNerd> git://
github.com/delagoya/merb_tlsmail.git18:02 <+TheWordNerd> Actually, it might just work best to comment that out, then comment out the part at the bottom of init.rb that loads config/smtp.yml.
18:08 <+Kriyasurfer> Hey, anyone know of an article showing good ways to test helpers?
18:09 <+TheWordNerd> How do I clear a breakpoint in ruby-debugger?
18:09 <+jackdempsey> cont ?
18:09 <+jackdempsey> i think the help context has good info
18:10 <+TheWordNerd> No, that just continues, doesn't seem to remove the breakpoint. Or is a breakpoint removed when passed?
18:11 <+jackdempsey> hmm
18:11 <+jackdempsey> as far as 'removing' i just comment the 'debugger' line out when i dont' need it
18:11 <+jackdempsey> maybe i'm misunderstanding you :-)
18:12 <+TheWordNerd> No, when you use the "break" cmmand within the debugger.
18:12 <+manu_> TheWordNerd: Cont/next does not remove a breakpoint
18:12 * TheWordNerd nods.
18:12 <+jackdempsey> ah
18:13 <+TheWordNerd> Aha, delete. Damn poorly-named commands. :)
18:15 <+manu_> was about to say :)
18:23 <+schwabsauce> so to run a story called 'email', I use rake story\[email\] ?
18:23 <+jackdempsey> yea i think you can actually run it without the \
18:23 <+jackdempsey> give it a try
18:24 <+schwabsauce> ok, rake aborted: Don't know how to build task 'story'
18:24 <+schwabsauce> both ways
18:25 <+jackdempsey> hmm, and you have merb_stories required?
18:26 <+schwabsauce> it was conditional upon Merb.environment == 'test'
18:26 <+schwabsauce> commenting that out helped
18:26 <+schwabsauce> thanks
18:27 <+digitaltoad> a question for merb/dm users, how does one using a method within the model save values submitted from a form that do not belong to that model, but belong to a related model
18:53 <+viktors> hi. looking for web developers to work in barcelona. msg if interested
19:07 <+mattetti> viktors: msg the mailing list with a job post ;)
19:10 <+carllerche> you can't specify :only / :exclude with skip_before / skip_after??
19:15 <+carllerche> Ah, I see, you don't do skip_filter, you redefine the filter with before
19:19 <+josb> Is merb-gen supposed to generate a sample config/merb.yml?
19:19 <+jackdempsey> i think merb.yml is old josb
19:19 <+jackdempsey> have you generated a new app with a new version of merb recently?
19:19 <+josb> Yes
19:20 <+jackdempsey> what're you lookin to put in there?
19:20 <+josb> So things that used to go into merb.yml should now go into init.rb?
19:20 <+jackdempsey> yeah
19:20 <+josb> Well, I had to change the session store and secret for my app
19:20 <+jackdempsey> ah ok
19:20 <+jackdempsey> yeah so init.rb is where you want to look
19:21 <+josb> so when I put that in config/merb.yml it still wasn't working
19:21 <+josb> This explains why. I wonder where a good place on the wiki would be to state that merb.yml is deprecated?
19:21 <+josb> Thanks jackdempsey!
19:22 <+jackdempsey> np!
19:50 <+TheWordNerd> Oh, wow, figured it out. I have no idea whose bug this might be. :)
19:50 <+TheWordNerd> Basically, in dm-validations/lib/dm-validations/validation_errors.rb line 39 you have "@errors[field_name].empty?"
19:51 <+TheWordNerd> And when I broke at that point in ruby-debugger and ran "@errors[:foo]", it returned nil, but added a :foo key to @errors.
19:51 <+TheWordNerd> I changed the check to !@errors.keys.include?(field_name) and that fixed it.
19:52 <+TheWordNerd> Any idea who might have opened Hash and told it to create a key if one didn't exist?
19:56 <+sintaxi> hey is anyone else having issues with migrations in AR?
19:57 <+ngng> is there a way to modify the value that is passed for an ajax update?, using scritpaculous, I'm passing value"=>"foo" but I'd like it to pass "name" => "foo" and merb is unhappy with me
20:10 <+jackdempsey> TheWordNerd: sounds familiar...
20:11 <+jackdempsey> you know how you can create a default value to a Hash when you do Hash.new
20:11 <+jackdempsey> almost feels like that....or maybe someone overrode []
20:13 <+ShayArnett> sintaxi: yeah .. 2.1 FTL
20:32 <+camilo_> how do I change Merb's log level in production? I tried using Merb::Config in environments/production.rb but it seems to be loaded after Merb::logger has been created
20:41 <+jackdempsey> camilo_: busy at the moment but i think you can find the info with some good googling, i remember it being discussed at one point
20:42 <+camilo_> jackdempsey: I already googled, but I'll try again.. maybe I missed someting in the resutls ;-)
20:42 <+jackdempsey> cool i'll see if i can find it as well when i grab a sec
21:41 <+eetfunk> Is it just me or there's a bug in Merb with the log level? Whatever value I set it at, it doesn't change
21:44 <+manu_> eefunk: where you do set it?
22:05 <+wycats_> elKoD: what's popping?
22:38 <+afrench> mattetti: interesting rumor
22:42 <+Xichekolas> so the merb api says there is an inflector called constantize, but when I try to call it I get undefined method... there some specific gem I need for this or something?
22:42 <+wycats_> the Merb API is wrong
22:42 <+wycats_> Object.full_const_get("...")
22:42 <+Xichekolas> brilliant
22:42 <+Xichekolas> thanks much
22:51 <+mattetti> afrench: yep, but they seem real!
23:10 <+joevandyk_> is there a blog that's written w/ merb?
23:11 <+GMFlash> there are a few.
http://pmpknpi.com/ is one
23:12 <+elKoD> is updated_at created in every model I make with merb-gen model ?
23:12 <+GMFlash> not sure. rails adds them by default though
23:13 <+elKoD> i'm using actionrecord orm and the slapp example
23:13 <+elKoD> i noticed that in the table it added two extra fields, id and updated_at
23:13 <+elKoD> although those are never explicit mentioned
23:17 <+elKoD> i think i get it
23:18 <+elKoD> merb knows nothing about how to create the model, it's activerecord that creates it, right?
23:18 <+fujin> joevandyk_:
featherblog.org23:18 <+GMFlash> i think so elKoD
23:18 <+joevandyk_> there a easy way to vendor all the gems that are needed by a merb app?
23:19 <+jackdempsey> merb-freezer
23:19 <+GMFlash> oh yeah Feather is supposed to be really nice. definitely give that one a look
23:19 <+fujin> feather has been great so far, has some issues living on the edge but what can ya do? :)
23:25 <+jfrench> anyone know why merb would be returning blank when requesting yaml (I have a provides :yaml in the controller), and interactively, the Model.find works
23:25 <+jfrench> dunno if I need merb helpers, or something
23:39 <+vices> is rspec crowd isn't nearly as friendly as the merb crowd :)
23:42 <+rboyd> I'm having trouble getting any validations working with datamapper.. I require 'dm-validations' before my model and se validates_presence_of but merb throws NoMethodError on validates_length_of. any idea why?
23:42 <+rboyd> er, presence_of, length_of, whichever I try
23:44 <+namelessjon> rboyd: you don't need the _of
23:44 <+namelessjon> rboyd: validates_present :name
23:53 <+namelessjon> rboyd: Also, dm-validations will have added your validates_length automatically. And if you put :nullable => false on the property, which turns it into a database constraint too, it will also add validates_present.
--- Log closed Fri Jun 20 00:00:18 2008