--- Log opened Tue Mar 25 00:00:37 2008
--- Day changed Tue Mar 25 2008
00:14 <+sLz> hello, is there any date helper method to generate 3 select fields for year/month/day ?
00:15 <+sLz> i know that there were but it seems that was removed
00:34 <+oj> is there a preferred way of calling javascript ERB templates? I currently use the following to call my .js.erb templates:
00:34 <+oj> render(:template=>"/path/to/template/_jerbthis.js", :format=>:js, :layout=>false)
00:35 <+oj> More to the point, are fixed paths required when calling the template?
00:41 <+ShayArnett> oj: EWWW
00:42 <+matta_> oj: why are you using a partial? is that something you have to do?
00:44 <+oj> tried, with a partial, but it didn't work:
00:45 <+oj> render(partial(:jerbthis), {:format=>:js, :layout=>false})
00:45 <+matta_> oj: I'm asking if you can get rid of the partial. can't you just called the js file directly from the controller action (using display or render)
00:45 <+ShayArnett> oj whats your action name.. and where is the js template relative to the other templates for that controller?
00:45 <+matta_> display, not render
00:46 <+oj> Shay: its ruby and js so I cant just call a js.
00:47 <+oj> Matt: ah, display... lemme try
00:49 <+oj> Matt: looks like 'display' still requires "path/to/foo"
00:49 <+oj> since it calls render as well
00:50 <+matta_> render uses the conventional path, why don't you use it?
00:51 <+oj> Matt: would love to, but it barfs.
00:51 <+oj> Matt: 'merb-core-0.9.1/lib/merb-core/controller/mixins/render.rb:199:in `partial''
00:51 <+oj> nil is not a symbol - (TypeError)
00:52 <+oj> maybe i need to pastie some code.
00:52 <+matta_> go for it
00:52 <+oj> thx. brb
00:53 <+matta_> I don't know if I can help but let's give it a try
00:53 <+oj> thx either way
00:58 <+oj>
http://www.pastie.org/17004300:58 <+oj> Example 1 code correctly searched for "/path/to/view/_jerby.js.*"
00:59 <+oj> Example 2 ends with a 'nil is not a symbol - (TypeError)'
00:59 <+matta_> rename your js.erb file do_something.js.erb put it in your folder and call render
01:00 <+matta_> or render :layout => :none
01:00 <+matta_> why would you call the view jerby.js.erb?
01:00 <+oj> because multiple methods may use the same render sequence
01:00 <+oj> will try renaming
01:01 <+matta_> is that a resource?
01:01 <+matta_> and did you define the provides :yaml, :xml, :js ??
01:02 <+oj> i tried using provides :js in the action, but it barfs
01:02 <+matta_> because the view is missing
01:03 <+daikini> ezmobius: ping
01:03 <@ezmobius> pong
01:03 <+oj> matt: will try it, brb
01:04 <@ezmobius> daikini: i went back to Merb::Config for haml
01:04 <@ezmobius> since its not a plugin
01:04 <+daikini> lol, make sense to me
01:04 <+daikini> I'm taking a whack at
http://merb.lighthouseapp.com/projects/7435/tickets/101:05 <@ezmobius> k
01:05 <+daikini> we you wanting a patch just for merb-gen help foo
01:05 <+daikini> or were you also wanting it to change the behavior so that merb-gen myapp would not generate myapp?
01:06 <@ezmobius> hmm im not sure i guess
01:06 <+daikini> and would require merb-gen app myapp
01:06 <+ShayArnett> i say go the merb-gen app myapp
01:06 <+ShayArnett> route
01:06 <@ezmobius> saounds good
01:06 <+ShayArnett> i was trying to generate an app called merbums the other day and it wasn't letting me
01:06 <+ShayArnett> because of merbful_auth
01:06 <+ShayArnett> was trying to run it instead ?
01:06 <+daikini> will do, thanks
01:07 <+sLz> where cani see the example of uploading a file in merb?
01:08 <+ShayArnett> daikini: you might want to make an error message so that if no generators are found by the args it shows how to properly use it :D so that way everyone trying to generate apps won't freak out
01:08 <+oj> Matt: When i try to use provides_js i get: Cannot modify provided_formats because content_type has already been set - (Merb::ResponderMixin::ContentTypeAlreadySet)
01:08 <+chicmome_> I'm working on a plugin and am trying to find a way to add a new routing type. e.g. r.dav('dav', :path => '/tmp').
01:08 <+oj> Matt: 'provides :js' that is
01:08 <+daikini> ShayArnett: yup :)
01:08 <+chicmome_> I tried duckpunching it, but I 'think' plugins are loaded after routes?
01:09 <+chicmome_> Is there a better way to add custom routing?
01:09 <+matta_> oj: try accessing /controller/action.js it should call your js view named action.js.erb
01:10 <+matta_> btw provides :js needs to be set in the controller above the action
01:11 <+matta_> Merb.available_mime_types in the console should also show you the registered mime types
01:11 <+oj> Matt: ah, hmm. so its for the entire controller. I think the docs may be off. they say "Adds formats to the list of provided formats for this particular request. Usually used to add formats to a single action."
01:12 <+oj> Matt: if i add it above the action, it will affect all methods, no?
01:12 <+matta_> you can do it for a single action to
01:12 <+matta_> oj:I can't remember the syntax to do it on a single action though
01:13 <+oj> Matt: ok, cool, I will look for it. let me see if i can get it to work explicitly with the format symbol
01:36 <+sLz> i have this noob question.. is it possible to send a photo and some text fields using the same form?
01:36 <+sLz> or i need to upload a photo, and then the details in another form?
01:45 <+sLz> done, thank you :)
01:56 <+pjb3> looks like merb-gen is broke in the lastest code:
01:56 <+pjb3>
http://pastie.caboo.se/17007301:57 <@ezmobius> hrmm
02:05 <+daikini> pjb3: I'm seeing the same
02:09 <@ezmobius> me too, trying to figure out why
02:09 <@ezmobius> not a very helpful error message
02:16 <+daikini> ezmobius: I've attached a patch to
http://merb.lighthouseapp.com/projects/7435-merb-more/tickets/1 that addresses the issues in that ticket
02:16 <+daikini> unfortunately with this other error going on merb-gen isn't very helpful at all right now :P
02:21 <@ezmobius> yeah i cant figure out wtf
02:28 <+codpiece> hmm.. why might my haml template silently render nothing.. if i put bogus code in it, it raises so it's getting parsed.. but i am getting no output..
02:29 <+Damm> codpiece, check out layout/application.html.haml
02:29 <+Damm> if it doesn't exist, make it.
02:29 <+codpiece> did the api to yield the action template change
02:29 <@ezmobius> daikini: fixed the merb-gen bug
02:29 <+codpiece> i have catch_content :layout in there from yonder .5 days
02:30 <@ezmobius> codpiece: catch_content :for_layout
02:30 <+codpiece> yes, that is a little more intuitive when you read it.. ;) thanks
02:31 <+daikini> ezmobius: nice!
02:34 <@ezmobius> daikini: applied your app genrator patch
02:34 <+daikini> ezmobius: cool, thanks!
02:35 <+codpiece> is it supposed to say 'loading so and so gem from ...'
02:35 <+codpiece> the ... is that supposed to be there
02:36 <+codpiece> i expect a path maybe but i dunno what "loading from ..." means
02:36 <+codpiece> this is all when you start the server
02:38 <+GMFlash> is there an easy way to remove all the merb-* gems in one swipe?
02:39 <+GMFlash> so when i pull the latest changes in i can reinstall the gems
02:41 <+piclez> GMFlash: there is sake task from ivey, very easy
02:41 <+piclez> GMFlash:
http://gweezlebur.com/2008/3/1/quickie-sake-tasks-for-merb-hackers02:43 <+GMFlash> ahh nice. why not rake though?
02:43 <+piclez> GMFlash that would be nice too ;)
02:45 <+GMFlash> one less dependency
02:49 <+piclez> true
02:51 <+piclez> ezmobius: why the double %% in the exceptions templates?
02:51 <@ezmobius> because rubigen was trying to run erb on them
02:52 <@ezmobius> so you have to double it up if you want the erb tags to remain after the template is parsed
02:52 <+piclez> oh I see nice
02:54 <+daikini> ezmobius: I think the double %% are only required at the beginning of the tag and not on the end
02:54 <+piclez> btw where in merb-core or more is the ParseTree dependency, is it because of ruby2ruby used in merb-actions-args?
02:54 <+daikini> <%% is needed
02:54 <+daikini> but %%> is not
02:54 <+GMFlash> piclez: just made a little hack: gem list | grep '^merb' | awk '{print $1}' | xargs sudo gem uninstall
02:54 <@ezmobius> ahh i see
02:55 <+daikini> ezmobius: I can clean that up real quick
02:55 <+daikini> if you'd like
02:55 <+piclez> GMFlash that's nice!! easier
02:57 <@ezmobius> i already did
02:57 <@ezmobius> fixed
02:57 <+daikini> great
02:57 <@ezmobius> ok we're ready to push merb 0.9.2 to rubyforge
02:57 <@ezmobius> anyone got a cute itdea for the release name?
02:58 <+GMFlash> ezmobius: before you push, did you put those changes into merb.fcgi?
02:58 <+GMFlash> and is it possible to chmod +x it?
02:59 <@ezmobius> merb.fcgi is updated yes
02:59 <+daikini> ezmobius: merb_flat/templates/views/foo.html.erb needs to have <%% :)
02:59 <@ezmobius> in the new generators
02:59 <+piclez> ezmobius: MerbEaster.. nah..
02:59 <@ezmobius> and it includes an .httaccess file for apache modfcgid now
02:59 <+GMFlash> ezmobius: i was just about to ask but you thought of everything :)
02:59 <@ezmobius> daikini: can you patch up the rest of those generators?
02:59 <+daikini> ezmobius: also, merb-very-flat is not generating correctly. The filename isn't being interpolated
02:59 <+daikini> ezmobius: yup, will do
03:00 <@ezmobius> cool thx
03:02 <+codpiece> wait the %% is supposed to be there?
03:02 <+codpiece> removing that extra % is part of what allowed the action-args spec to run at all for me :\
03:02 <+codpiece> otherwise the whole template was being parsed as ruby
03:03 <@ezmobius> its supposed to be there yes
03:03 <@ezmobius> otherwise it will try to run the templates when you use the generators
03:04 <+codpiece> hmm
03:04 <+codpiece> yeah maybe the better approach to my problem would be to figure out why merb-gen needs to be run at all for the action-args spec..
03:07 <+codpiece> can i run merb from Merb.root/gems
03:08 <+codpiece> like vendor/rails
03:08 <+codpiece> that bit to put the gems dir in the Gem path at the beginning of my rakefile doesn't seem to work since the line that requires merb-core dies
03:10 <+daikini> ezmobius:
http://merb.lighthouseapp.com/projects/7435-merb-more/tickets/8803:11 <@ezmobius> applied thanks
03:12 <+esparkman> :( the hackintosh pooped out
03:18 <+nodsworth> fresh/app/models/queue_item.rb:2: undefined method `property' for QueueItem:Class (NoMethodError) <-- merb 0.9.1 (dev) <-- use_orm :datamapper is uncommented in config/init.rb
03:29 <+codpiece> ooh.. merb needs to be frozen
03:32 <+ivey> nodsworth: works w/ 0.9.1 and not with the latest code?
03:32 <+nodsworth> well, i have no idea how to correct that error i'm getting about property not being defined within a model
03:32 <+ivey> or vice-cersa?
03:32 <+ivey> pastie me QueueItem, or part of it
03:32 <+nodsworth> ivey: i created a new project with 0.9.1 today
03:32 <+nodsworth> 1s
03:32 <+ivey> which 0.9.1? gems, or git?
03:33 <+nodsworth> gem
03:33 <+ivey> k
03:33 <+ivey> how did you make your model? generator, or by hand?
03:34 <+nodsworth> merb-gen model QueueItem
03:34 <+nodsworth>
http://pastie.caboo.se/17013003:34 <+nodsworth> ohg awsh
03:34 <+nodsworth> i just saw the problem
03:35 <+ivey> yeah
03:35 <+ivey> did the generator make that?
03:35 <+ivey> or did you gen it before you uncommented use_orm?
03:35 <+nodsworth> exactly.
03:36 <+nodsworth> i made it before setting use_orm
03:36 <+ivey> k
03:36 <+nodsworth> sigh. i need some sleep
03:36 <+ivey> anyone else got showstoppers on a 0.9.2? i'm tagging it now
03:36 <+nodsworth> it's always the little things. i was sitting here reading through merb-core/lib/kernel.rb
03:37 <+ShayArnett> ivey: i haven't ran into anything in weeks :D getting pretty solid as far as i can tell
03:38 <+daikini> ivey: I haven't found anything
03:39 <+jtoy> ivey: where is the changelog for 0.9.2?
03:40 <+ivey> git log v0.9.1..
03:40 <+ivey> it'll be committed in a second or three
03:44 <+ivey> -core changelog committed
03:46 <+Damm> ooh prep of 0.9.2
03:56 <@ivey> someone install 0.9.2 and give me a sanity check
03:56 <@ivey> before i unleash it on the world
03:56 <+ShayArnett> lol
03:56 <+ShayArnett> want me to run it through a couple apps i have?
03:56 <@ivey> go for it
03:57 <+ShayArnett> git pull ok ? or do you want me to do a true gem install with --source
03:57 <+daikini> ivey: is there a change log for -more or -plugins?
03:57 <@ivey> use the gems, to be sure
03:57 <@ivey> daikini: yes
03:57 <@ivey> both are committed
03:57 <@ivey> i make them from git log though
03:58 <@ivey> so git log v0.9.1.. should be good enough
03:59 <+daikini> ivey: ah I see, the changelogs were only updated in the tag? -core it was updated in master as well
04:00 <@ivey> tags are just objects
04:00 <@ivey> should be in master
04:00 <@ivey> is it not?
04:00 <+daikini> not that I see
04:00 <@ivey> weird
04:01 <+daikini>
http://github.com/wycats/merb-more/tree/master04:01 <@ivey> github isn't showing my commits
04:01 <@ivey> but git push says up to date
04:02 <@ivey> ah
04:02 <@ivey> "git push --tags" doesn't mean push, and push tags
04:02 <@ivey> it measns push tags
04:02 <@ivey> it's up
04:03 <+daikini> yup, got 'em :)
04:04 <+ShayArnett> ivey: merbums runs
04:04 <+ShayArnett> checking some others
04:08 <+kenphused> wow... 092 is officially released... nice job guys
04:09 <+ShayArnett> ivey: couple issues with dependency weirdness... but just need to change some external requires on my end ... other than that everything i've got works
04:10 <@ivey> k
04:10 <@ivey> thanks shay
04:13 * kenphused is away: nighty night
04:22 <@ivey> heh.
http://rubyforge.org/projects/merb/ looks awesome
04:23 * ShayArnett faints
04:26 <+ShayArnett> better get some sleep...
04:26 <+ShayArnett> later all
04:35 <+sintaxi_> good evening. anyone have information on the attachmerb_fu plugin?
05:12 <+GMFlash> w00000000000000t! 0.9.2!!!!
05:13 <+GMFlash> i always get excited about a new merb release :)
05:23 <+brapse_> oh man,
05:23 * brapse_ checks the changelog
05:42 <+sintaxi_> anyone know how to use fixtures with merb?
06:22 <+piclez_> so I'm having problem with 0.9.2 running rake
06:23 <+piclez_> can't convert String into Hash
06:26 <+chendo[work]> Missing gems?
06:27 <+piclez_> I had to install haml to have the server up
06:34 <+brapse_> piclez_: its a problem with load_dependecies function. is it possible your sending it the location of the applications init file?
06:50 <+piclez_> brapse_: yea might be.. I created this app with 0.9.1
06:50 <+piclez_> brapse_: Rakefile:17 is the error, just after this
06:50 <+piclez_> init_file = File.join(File.dirname(__FILE__) / "config" / "init")
08:08 <+hipertracker> Do anybody have any problem with pushing data to github? I got fatal: The remote end hung up unexpectedly.
08:09 <+hipertracker> ssh keys are correct. I have checked it on two different machines and OS (osx and ubuntu). I can pull but not push... :(
08:22 <+jtoy> how do I get the current url I am at?
10:17 <+jonegil> 3 cheers for 0.9.2 - hurrah hurrah hurrah
10:32 <+ior3k> anyone here?
10:33 <+ior3k> ivey: ping?
10:33 <+smoofles_> I am, but I'm afraid I'm not of any help
10:33 <+ior3k> smoofles: :) thanks anyway
10:36 <+hassox> ior3k: ivey will be in bed I think
10:47 <+ior3k> hassox: do you know who's taking care of merb_datamapper?
10:49 <+ior3k> hassox: I'd like to move it to dm-more if no one is maintaining it
10:49 <+ior3k> hassox: I've already changed it to work with DM 0.9.0
10:49 <+ior3k> hassox: ... well, part of it, at least
10:50 <+ior3k> hassox: still missing sessions
10:51 <+hassox> ior3k: It's a core thing...
10:51 <+hassox> something big like that should be run by ez, ivey and wycats
10:52 <+ior3k> hassox: I believe ezmobius has alread expressed interest in moving merb_datamapper to dm-more
10:52 <+ior3k> hassox: but I'm not sure
10:52 <+ior3k> ok, I'll come back in a few hours :)
10:52 <+hassox> yeah prolly a good idea :)
10:52 <+ior3k> hassox: thanks
10:52 <+hassox> np
10:59 <+hipertracker> datamapper sucks. sequel is much more powerfull yet simple
11:47 <+wycats> hipertracker: o.O
11:47 <+hipertracker> it is impossible to express more complex queries in datamapper.
11:47 <+wycats> disagree
11:48 <+wycats> 0.9 is going to have much more complex query syntax
11:48 <+wycats> allowing you to query associations in one step
11:48 <+wycats> ior3k: If you want to make merb-dm part of DM, that's cool, as long as DM will agree to maintain it
11:48 <+hipertracker> let see. how to make such query in datamapper: SELECT * FROM nodes WHERE (id IN (SELECT node_id FROM refs WHERE (parent_id IS NULL)))
11:50 <+hipertracker> In sequel it is trivial: nodes.filter { :
id.in(refs.filter {:parent_id.nil?}.select(:node_id)) }
11:51 <+wycats> hipertracker: you're going to be able to do that... it's too early in the morning for me to recall the syntax (/me tries to pull up some examples I was working up)
11:51 <+wycats> hipertracker: Sequel really shines when you're abstracting SQL
11:51 <+wycats> DM shines when you need arbitrary stores
11:51 <+hipertracker> I remember I had problems with explicite joins in DM.
11:51 <+wycats> right
11:51 <+wycats> because 0.3 was incomplete
11:51 <+wycats> 0.9 is much better
11:51 <+wycats> for instance, DM 0.9 has a Yaml Store
11:52 <+hipertracker> I have to check it again if you say so
11:52 <+wycats> and you can do resource.copy(:default, :yaml) or somesuch
11:52 <+wycats> hipertracker: I would wait until the end of the week
11:52 <+wycats> I'm speaking on DM at MWRC
11:52 <+hipertracker> Why wait? Something will be changed in DM code?
11:53 <+hipertracker> MWRC?
11:53 <+wycats> DM 0.9 is not quite complete
11:53 <+wycats> it's like where Merb 0.9 was a few weeks ago
11:53 <+wycats> Mountain West RubyConf
11:54 <+hipertracker> hmm. its documentations is almost nil :(
11:54 <+wycats> yep
11:54 <+wycats> that's gonna get better
11:54 <+wycats> I'm not saying don't use Sequel
11:54 <+wycats> I think there's a lot of good cases for Sequel
11:54 <+wycats> DM is a targeting a different use-case
11:54 <+wycats> another example: custom field types
11:54 <+wycats> property :foo, YamlType
11:54 <+hipertracker> How different? It would be interesting to compare DM with Sequel
11:54 <+wycats> you then define a class called YamlType with dump and load methods
11:55 <+wycats> or CsvType
11:55 <+hipertracker> I can do all like that with simple custom methods in Sequel
11:55 <+wycats> sure
11:55 <+wycats> but less automagically
11:55 <+wycats> before I got involved in DM, I was strongly considering writing an ORM on top of Sequel
11:55 <+wycats> I decided to write DO.rb instead
11:55 <+hipertracker> I do not need even macros like has_many etc.
11:55 <+wycats> which has proven to be a huge boon for DM
11:56 <+wycats> I know
11:56 <+wycats> that's cool if you mainly want a DSL on top of SQL
11:56 <+wycats> like I said, it depends what you want
11:56 <+hipertracker> What I need is to have prepared statements. They can boost inserts very much.
11:56 <+wycats> yeah... we do prepared statements
11:56 <+hipertracker> I want to have easy and flexible orm. That's all
11:56 <+wycats> DM has brand-new C drivers
11:57 <+wycats> that's the main thing
11:57 <+wycats> Zoo.all is 10x faster than AR
11:57 <+wycats> we do typecasting once
11:57 <+wycats> Zoo.first is 3-4x faster
11:57 <+hipertracker> What about explicite relations? Even AR can do it with :joins, and :include option
11:58 <+wycats> yeah
11:58 <+wycats> one sec
12:00 <+wycats> ok... Zoo.all(Zoo.state.abbreviation => 'TX',
Zoo.exhibits.rating.gt => 5, :limit => 10)
12:01 <+hipertracker> I like .sql in Sequel. I can see query at every stage without touching a database. It is very usefull for optimization and full controll ovr generatedSQL query.
12:01 <+wycats> hipertracker: like I said, if you're mainly interested in a DSL on top of SQL, Sequel is it
12:02 <+JimPeak> any link to a 0.9.2 changelog?
12:03 <+wycats> heh... I had dinner while they released
12:03 <+wycats> I think the big one is merb-gen foo became merb-gen app foo
12:03 <+hipertracker> Can you give me an example of prepared statement in DM? Something like pythonic cursor.executemany("INSERT INTO tab (a,b), VALUES(?,?), [[1,2],[3,4], [4,5]])
12:05 <+wycats> right
12:05 <+wycats> and DO.rb attempts to use it
12:05 <+wycats> if possible
12:06 <+wycats> DO.rb accepts the prepared statement syntax and uses a prepared statement if supported by the DB
12:06 <+hipertracker> How to inspect what queries are use behind the scene in DM?
12:06 <+hipertracker> er, used
12:10 * wycats investigates
12:14 <+wycats> hmmm
12:14 <+wycats> so with Sequel you get a "query" object
12:14 <+wycats> With DM there is no query object
12:14 <+wycats> the Sequel way produces more Ruby objects and is a bit slower
12:15 <+hipertracker> But I can build mu conditions in incremental way and see sql for every step.
12:15 <+wycats> yep
12:15 <+wycats> like I said...
12:15 <+wycats> ;)
12:15 <+schulty> does merb let you add rake tasks in lib/tasks like rails?
12:16 <+hipertracker> But is there any way of seeing sql generated by DM?
12:16 <+wycats> logs ;)
12:16 <+hipertracker> I see. Like AR?
12:17 <+hipertracker> This preview for sql at anymoment is killer feature in Sequel.
12:18 <+hipertracker> But I will give DM a chance. I made fork from git repos.
12:19 <+wycats> like I said, I'm not sure it's "done" per s?
12:19 <+hipertracker> Are DM migrations still destructive?
12:19 <+fightinjoe> schulty: not sure, but you can add a require to your Rakefile to load them from whichever directory you like
12:19 <+schulty> fightinjoe: yeah figured, thanks
12:22 <+wycats> hipertracker: there's classic migrations now
12:23 <+hipertracker> DM needs more documentation. It should be its priority. How to use it without any docs?
12:24 <+wycats> hipertracker: like I said...
12:24 <+wycats> 0.9 is not even at a release yet
12:25 <+wycats> the priority leading up to 1.0 will be docs
12:25 <+wycats> same with Merb
12:27 <+hipertracker> Where is issue tracker for DM? Do they use
lighthouseapp.com like Merb?
12:31 <+kenphused> hipertracker: i will be diving into dm documentation tonight... what area is of interest to you?
12:32 <+hipertracker> all :) filtering, relations, joins etc
12:34 <+hipertracker> and working with tables with diferent conventions (table name, pk, natural and composite as well, fk etc)
13:04 <+pius> JimPeak:
http://github.com/wycats/merb-core/tree/master/CHANGELOG13:05 <+JimPeak> pius: thanx
13:05 <+pius> np
13:05 <+JimPeak> I forgot to check on github...
13:06 <+pius> I was about to ask the same question you did, actually :)
13:22 <+JimPeak> about to sign up with
slicehost.com. 3 people on this channel commented slicehost yesterday. First to answer gets his/her email as referral
13:23 <+Booster> go slicehost go
13:25 <+JimPeak> you have a slice?
13:26 <+Booster> yep
14:05 <+JimPeak> Booster: you there?
14:06 <+Booster> JimPeak, yeah
14:07 <+JimPeak> I private chatted you, without success apprently, to get your email, so i can create my slice with you as referral
14:07 <+Booster> JimPeak, is your nick registered?
14:08 <+JimPeak> hum, no, my mistake
14:08 <+JimPeak> got it though
14:09 <+Booster> JimPeak, thats why I didn't get the /msg, but /notice to the rescue :)
14:10 <+JimPeak> haven't used irc in 10 years, forgive me
14:10 <+Booster> heh, no problem
14:27 <+simmel> freenode is not IRC (compilant) ; P
14:36 <+nctx> any articles on the net regarding 0.9.2?
14:48 <@ivey> nctx: not yet
14:48 <@ivey> there's stuff about 0.5 -> 0.9
14:49 <+nctx> yeah, I've seen those. just logged into this channel and saw .2 was released. very excited, just wanted to know what has changed since .1
14:49 <@ivey>
twitter.com/merbivore14:50 <@ivey> last 3 or so posts have tinyurls to the chnagelogs
14:50 <+nctx> thanks!
14:50 <+GMFlash> nctx: for one i know that fcgi support works now
14:51 <+nctx> yeah, I see the rack handler is in there for fcgi
14:51 <@ivey> GMFlash: that's super duper
14:52 <+nctx> so much work in 0.9.2 nice one.
14:52 <+GMFlash> nctx: well it's been there for 6 months but just started working a couple days ago :)
14:52 <+GMFlash> and now that it's working, rails is dead to me
14:53 <+codewranglers> GMFlash: heh, same here
14:53 <+GMFlash> except for activerecord :)
14:53 <+codewranglers> datamapper 0.9 is coming soon ;)
14:53 <+nctx> I've switched to sequel. seems nice and stable.
14:54 <+GMFlash> i have a lot of crazy has_many :through associations. i wonder if i can convert those to dm/sequel
14:55 <+codewranglers>
http://adam.speaksoutofturn.com/archives/5214:55 <+keeran> anyone using Sequel ORM? For some reason today, any call I make to dataset.filter is bombing out of ruby, no errors/warnings, just straight out to the command prompt (from irb), mongrels are just EOF'ing
14:56 <+nctx> I'm using it but I haven't upgraded to 0.9.2 yet
15:18 <+sevenos> hi all ^^ i've just updated to 0.9.2 (gem update), tried to start merb and got "/var/lib/gems/1.8/gems/merb-core-0.9.2/lib/merb-core/bootloader.rb:362:in `load_classes_with_requirements': Could not load ["/home/kai/workspace/merblog/app/models/user.rb"]. (LoadError)" any advice how to fix that?
15:19 <+sevenos> it worked with 0.9 dev
15:19 <@ivey> ruby -cw app/models/user.rb
15:20 <+sevenos> what does it do?
15:20 <+drfreeze> Anyone know of an online rolodex app?
15:21 <+sevenos> ah ok.. Syntax OK
15:23 <@ivey> drfreeze: highrise ?
15:23 <@ivey> sevenos: hmm
15:23 <@ivey> sevenos: does it use any inheritance?
15:25 <+sevenos> ivey: only datamapper...hmm i think it didnt got updated mom
15:25 <+drfreeze> ivey: thx for the highrise ptr. haven't seen that 37s app yet
15:27 <+sevenos> ivey: the datamapper gem wasn't up to date, now it works :)
15:29 <+sevenos> or, better said, i got an other error ^^ looks like 9.2 loads merb-cache and needs a tmp/cache even without using it?
15:30 <@ivey> sevenos: did you require 'merb-more' ?
15:30 <@ivey> require merb-more loads ALL of merb-more including merb-cache
15:30 <@ivey> but it should make the cache dir if it doesn't exist
15:30 <@ivey> so file a bug for that, if that's the case, puhlease
15:30 <+sevenos> yes i do, just wondering why it worked in 0.9 dev
15:31 <@ivey> because 0.9.1 didn't have merb-cache
15:31 <@ivey> we added that really recently
15:31 <+sevenos> it can't create a dir because it dont have the rights to do (there is no writeable tmp dir)
15:31 <@ivey> ah
15:32 <+sevenos> now it runs, thanks
15:55 <+Industrial> Hi. I just installed merb;
http://images.gammatester.com/pics/f7993730cdc6081c9d620cdbe7ab8d00.png15:58 <+pluesch0r_> Industrial: you could install the mongrel gem to fix that.
15:59 <+pluesch0r_> Industrial: or you could use google.
15:59 <+pluesch0r_> and find out that you're missing the mongrel gem.
15:59 <+sevenos> Industrial: use merb-gen to generate a new app
15:59 <+Industrial> well I did install with --include-dependencies, so i assumed :>
16:00 <+pluesch0r_> Industrial: merb also runs on other app servers.
16:00 <+pluesch0r_> mongrel is just the default one.
16:00 <+Industrial> So it doesnt work by default? :s
16:00 <+Industrial> (sorry pushing it)
16:24 <@ivey> maybe merb-more should depend on mongrel?
16:25 <@ivey> or maybe the merb meta gem should
16:25 <@ivey> so gem install merb gets mongrel
16:29 <+daikini> ivey: maybe merb-core since that's the gem that has the merb binary which will use mongrel by default?
16:48 <+pjb3> Totally off topic, is anybody using open id? I mean as end user, not in your rails/merb apps
16:48 <+jonegil> pjb3 - yeah
16:49 <+pjb3> Who are you using as your provider?
16:49 <+jonegil> I use MyOpenID - but there's many of them out there
16:50 <+jonegil>
http://en.wikipedia.org/wiki/List_of_OpenID_providers16:50 <+pjb3> Yeah, I see that, what's up with Google, your gmail account doesn't acts as an openid?
16:50 <+pjb3> oh, via blogger
16:51 <+pjb3> but not
openid.gmail.com or
openid.google.com16:51 <+pjb3> :(
16:52 <+jonegil> well, I know, but myopenid is ok too
16:52 <+pjb3> do they provide phishing protection?
16:52 <+pjb3> Like can I upload a picture of myself or something
16:52 <+pjb3> and then they show that to me on the login page
16:53 <+pjb3> Yes:
https://www.myopenid.com/set_cookie_image16:55 <+jonegil> the thing is, I haven't really been using sites that use openid
16:57 <+neaf> Hi, it's possible to find anywhere simple way to run merb via fcgi ( dreamhost ) ?
16:58 <+neaf> I have all gems installed, but I don't know how .fcgi file should look like.
17:00 <+myobie> neaf: the newest merb-core generated a fcgi file for me, have you tried that one yet?
17:00 <+neaf> myobie: Ohh, moment.
17:01 <@ivey> daikini: but merb-core doesn
17:01 <@ivey> t depened on mongrel
17:01 <+daikini> ivey: sure it does :)
17:01 <@ivey> so you should be able to install merb-core without mongrel, for sure
17:01 <+pjb3> jonegil: Yeah, more sites need to start supporting openid
17:02 <@ivey> daikini: no it doesn't, it will work w/ any rack enabled server
17:02 <+pjb3> One thing that would help would be if all bloggers made it so that if you want to leave a comment on the blog, you have to log in using openid
17:02 <@ivey> gems doesn't have virtual depends, sadly
17:02 <+daikini> ivey: true, but it uses mongrel by default
17:02 <+daikini> ivey: that's true
17:02 <+pjb3> no anonymous comments
17:02 <@ivey> daikini: right
17:02 <@ivey> but if you want merb-core + ebb you shouldn't have to have mongrel
17:03 <@ivey> which is why i thought the merb meta gem might be the way to go
17:03 <+neaf> myobie: Thanks, I'll play around it.
17:03 <+pjb3> that would give people incentive to start signing up for openid accounts, get people used to using them, which would make it become something that more websites would want to support
17:03 <@ivey> so "gem install merb" follows POLS and works out of the box
17:03 <@ivey> but gem install merb-core merb-more would let you do a non-mongrel install
17:03 <+daikini> ivey: that's a good point, if you gem install merb-core it could be assumed you'd know what you are doing
17:04 <@ivey> right the merb meta gem is only there for convenience anyway
17:04 <+daikini> ivey: yup, I agree then, merb meta gem would be the best place to put the dependency on mongrel then
17:05 <@ivey> well if someone opens a ticket i'll do it when i get back from lunch, unless someone patches it before then
17:05 <@ivey> merb-more defines the merb meta gem
17:05 <@ivey> in Rakefile
17:05 <+myobie> neaf: let me know how it goes, i want to try it next week
17:05 <+neaf> myobie: sure
17:05 <+daikini> ivey: sure, I could put a ticket + patch together
17:12 <+neaf> myobie: I get 500 error, but I think this is dreamhost case.
17:13 <+myobie> neaf: hmmm, is there a log?
17:15 <+neaf> myobie: FastCGI: incomplete headers (0 bytes) received from server | but the same case is with django, I have to ask support to raise softlimit for apache at my domain.
17:17 <+myobie> neaf: oh, that is kinda weird
17:17 <+neaf> yeah.
17:20 <+jamiehoover> Has anyone had internal server errors that only show up on the iPhone?
17:21 <+jamiehoover> Sorry, my bad. Had Safari hold on to a bad page until I forced a restart. Weird.
17:26 <+jodo> im getting the following when i try to run a merb app:
17:27 <+jodo>
http://pastie.caboo.se/17037617:28 <+daikini> jodo: do you have a tmp directory in your merb app and is it writable?
17:28 <+jodo> just noticed that, im an idiot, thanks :)
17:31 <+daikini> jodo: np, merb-cache was added recently so your app probably just didn't have that dir
17:33 <+jonegil> jodo - note that you don't necessarily _need_ the tmp/cache directory, it depends on how you use merb-cache
17:35 <+jonegil> jodo - the merb-cache docs are for some unknown reason not on merbivore, get them from your local rdocs or here:
http://merb-cache.rubyforge.org/files/README.html18:21 <+tmm1> anyone seen wycats?
18:26 <+jackdempsey> anyone seen any value in writing a script or something to help people convert rails apps to merb apps?
18:26 <+jackdempsey> i remember using a gem or something once that analyzed an app and called out deprecated things, etc.....was really useful.....something like that might be helpful for things like
18:26 <+jackdempsey> before_filter -> before, render :partial -> partial
18:27 <+afrench> slow -> fast as hell
18:27 <+jackdempsey> lol
18:28 <+nlogax> some good, up to date tutorials would be more helpful, i think :P
18:28 <+nlogax> maybe i'm just bad at searching
18:47 <+midget_nuts> ivey : do you know if
http://merb.lighthouseapp.com/projects/7433-merb-core/tickets/204-fixatable-routes-request-route-method-not-found is in merb-core head?
18:48 <@ivey> yes
18:48 <@ivey> it's in 0.9.2 too
18:51 <+ior3k> ivey: sorry to intrude
18:52 <+ior3k> ivey: does anyone own merb_datamapper currently?
18:52 <@ivey> no one really owns any of the official merb stuff
18:52 <+ior3k> ivey: yes, I mean, actively maintaining it
18:53 <@ivey> my statement is stillt true :) wycats ez me some others
18:53 <@ivey> we all work on it
18:53 <+jackdempsey> heh
18:53 <@ivey> there's no one who is the dm guy though
18:53 <+ior3k> ivey: lol
18:53 <+ior3k> ivey: ok, that's what I mean
18:53 <+ior3k> ivey: because I'd like to take it to dm-more
18:54 <@ivey> part of me thinks that is awesome
18:54 <+ior3k> ivey: I've already ported it to DM 0.9.0
18:54 <@ivey> and wycats said he was cool with it, if it would keep official status within DM
18:54 <+ior3k> ivey: and the other part? :)
18:54 <@ivey> ie: if we hand it over to DM, we want to make sure it stays fully supported
18:55 <+ior3k> ivey: yeah, I'm a DM developer
18:55 <@ivey> eh, the other part of me says it would be better for you/other DM folks to maintain it inside merb
18:55 <@ivey> but either way, as long as it stays awesome, i'm good
18:55 <@ivey> what i would suggest is this:
18:55 <+oceanview> hi, I am wondering if we have datehelper method( like select_date in rails ) in merb?
18:55 <@ivey> you get commit to merb-plugins and start maintaining it, but we release it with merb until 1.0
18:56 <@ivey> at merb 1.0, we split it off, because merb is stable API wise at that point
18:56 <+ior3k> ivey: fine with me, but I'll have to talk to ssmoot about it
18:56 <@ivey> ok
18:57 <+ior3k> ivey: I think he is expecting it to become part of dm-more
18:57 <@ivey> i think the general "DM folks maintain merb_dm" is a good idea
18:57 <+ior3k> ivey: yeah
18:57 <+ior3k> ivey: well, either way, I'll take care of it
18:57 <@ivey> but i don't want to feel like we can't make a change to merb because we can't fix merb_dm
18:57 <@ivey> at least per-1.0
18:57 <@ivey> pre
18:58 <+ior3k> ivey: thanks
18:58 <+ior3k> ivey: no need to worry about it
18:59 <+oceanview> ivey: I am wondering if we have datehelper method( like select_date in rails ) in merb? or we have to implement it ourselve?
18:59 <@ivey> maybe something in merb-helpers
18:59 <@ivey> merb_helpers i mean
18:59 <@ivey> lol
18:59 <+Flea> oceanview: i ended up implementing my own
18:59 <@ivey> Flea: submit it as a merb_helpers patch :)
19:00 <+Flea> ya
19:00 <+Flea> ivey: i was planning on it
19:00 <+Flea> ivey: just haven't gotten around to it... :)
19:00 <@ivey> :)
19:02 <+sintaxi_> oceanview: I hacked the rails helpers to work with date_control *shame shame.
http://pastie.textmate.org/private/xxb1bkcabbmr3pmjgosfw19:03 <+Flea> sintaxi_: hahah that's what i started to do... then i felt all dirty
19:04 <+oceanview> thanks guys.. that's what I was trying to do..
19:04 <+Flea> sintaxi_: i need to clean up my code though
19:05 <+Flea> but i guess if i push a patch of what I have, someone else can take off from there
19:05 <+codewranglers> sintaxi_ that stuff is already in merb_helpers
19:05 <+sintaxi_> Flea: if you are working on something you would like me to test, I would be happy to do so.
19:06 <+codewranglers> sintaxi_: a good amount exists in merb_helpers, which shouldn't be too hard to add your stuff in
19:07 <+Flea> codewranglers: which methods are you refering to?
19:08 <+codewranglers> nm, I'm mistaken. I had thought that a few of those existed already :|
19:10 <+sintaxi_> so if I get something working nicely should I add it to merb_helpers and submit a pull request?
19:11 <+Flea> sintaxi_: ya do it
19:12 <+codewranglers> yea, that will allow them to cherry pick and add what they want to. I don't think anyone is really working on the date_time_helpers all that much
19:12 <+codewranglers> vanpelt was the last one to add to it
19:12 <+Flea> sintaxi_: hey i could send you what i have thus far...
19:13 <+Flea> sintaxi_: trust me though it needs some clean up
19:14 <+codewranglers> I have a gem I'm working on that extends date/time/datetime that is not framework dependent that gives you some of that rails feel:
http://github.com/revans/ruby-class-extensions/tree/master19:15 <+Flea> codewranglers: so the gem is a bunch of wrappers?
19:17 <+codewranglers> all it does is basically opens up time and date (datetime coming soon) to add some of the things you are used to in rails: 1.minute, Time.now.beginning_of_month, etc
19:17 <+codewranglers> check out the specs to see how to use it
19:18 <+codewranglers> for things in that gem, there is no reason why any of it should be dependent on framework, which is why I have it as it is
19:20 <+midget_nuts> ivey: I think the fixate thing is still messed up . . . I'll take a peak after lunch . . . and write a test for it . . . its still getting that the route is nil . . . nil.allow_fixation?
19:20 <@ivey> maybe there's no route
19:21 * Flea going to eat delicious chipotle
19:22 <+midget_nuts> yeah that may be the case you said that controller no longer has access to routes . . . so probably . . . is
19:23 <+midget_nuts> i'll peak at it later, lunch calls.
19:43 <+rdavila> Hi friends
19:43 <+rdavila> on question, how to i can render an action in merb 0.9.2?
19:44 <+rdavila> i use: "render :action => :my_action" but i get a "no template found at ..." exception
19:44 <+rdavila> but the view for this accion exists
19:46 <+neaf> rdavila: render :myaction ?
19:47 <+rdavila> Hi neaf, this work, but i have: <%= error_messages_for :user %> in this view and this don't put nothing
19:48 <+rdavila> only show me the form
19:48 <+sintaxi_> codewranglers:, Flea:, sorry I was out for lunch.
19:49 <+sintaxi_> codewranglers:, Flea: Ill fork merb_helpers and see what I can do.
19:49 <+sintaxi_> Flea: where is your attempt located?
19:50 <+neaf> rdavila:
http://pastie.caboo.se/170471 This returns me form with errors.
19:51 <+rdavila> neaf: i have the same code here:
http://pastie.caboo.se/17047219:51 <+rdavila> but, this don't show me validation errors
19:52 <+webmat> Does anybody know whether Datamapper 0.3.0 is absolutely necessary to run Merb 0.9.2?
19:52 <+webmat> I don't want to run DM 0.3.0
19:53 <+neaf> rdavila: Have you tried put errors into form block ?
19:53 <+rdavila> neaf: no, i try it
19:55 <+neaf> rdavila: Just guess, I'm new at merb.
19:57 <+rdavila> neaf: when i use the block i get an compile error ...
19:57 <+rdavila> compile error /home/rdavila/proyectos/merb/merb_test/app/views/users/new.html.erb:2: syntax error, unexpected '{', expecting ')' '; _buf << ( ....
19:59 <+rdavila> neaf: you know if the validations are the same that in Rails?
19:59 <+rdavila> i'm using "validates_presence_of :name" in the model, the validation work, because the record don't save when this fail
20:00 <+neaf> rdavila: I can't tell you much... I've never used Rails, I'm new here migrating from django.
20:00 <+rdavila> but the "error_for_mesages" helper don't work, because this don't show errors in the view
20:00 <+rdavila> oh!, WELCOME neaf hehehe!
20:01 <+neaf> rdavila: :) Django forms frameworks is better IMO.
20:01 <+neaf> rdavila: brb, switching to linux. I'll look at this.
20:18 <+shlomiatar> hmmm, I got a weird problem..
20:19 <+webmat> Is Datamapper 0.3.0 absolutely necessary to run Merb 0.9.2? DM 0.3.0 seriously breaks test::unit, so I'd like to wait a bit before upgrading from 0.2.5...
20:19 <+shlomiatar> I have a model, which is extended by a mixin,
20:20 <+shlomiatar> and the class methods works when I run it with merb -i
20:20 <+shlomiatar> yet it raises MethodNotFound when I try to call it from a controller!
20:22 <+ezmobius> webmat: 0.3.0 is not a strict requirement i dont think
20:22 <+webmat> ezmobius: Ok, thanks Ez :-)
20:32 <+rdavila> neaf: i fix the problem
20:33 <+rdavila> error_messages_for 'user' don't work, but this example is from the documentation
20:33 <+rdavila> it works: error_messages_for @user
20:33 <+rdavila> err: error_messages_for :user don't work
20:39 <+neaf> rdavila: Thanks :) I have little problem with gems now.
20:40 <+webmat> for the record, I confirm that 0.9.2 runs fine with Datamapper 0.2.5
20:42 <+neaf> I've updated gems to 0.9.2 and: /usr/lib/ruby/gems/1.8/gems/merb-core-0.9.2/lib/merb-core/config.rb:19:in `pwd': No such file or directory - getcwd (Errno::ENOENT) | Any ideas?
20:47 <+daikini> neaf: Can you change out of the directory you are in, change back and then re-run the command?
20:48 <+neaf> daikini: Ohhhhhh. Thanks :D
20:48 <+Judofyr> is 0.9.2 also dev-release?
20:48 <+eoghanj> hi!
20:48 <+eoghanj> ive just installed 0.9.2
20:49 <+eoghanj> previously i was able to create the dir for my app by running
20:49 <+eoghanj> merb myapp
20:49 <@ezmobius> Judofyr: nope 0.9.2 is an official release to rubyforge
20:49 <+Judofyr> :)
20:49 <+Judofyr> nice
20:49 <+eoghanj> now this just starts mongrel
20:49 <@ezmobius> eoghanj: now its merb-gen app myapp
20:49 <+eoghanj> ah ok
20:50 <+eoghanj> i did look around, just didnt see anything, though i know dev is real fast
20:50 <+ShayArnett> anyone remember who was working on the mini-magick type plugin?
20:51 <@ezmobius> ShayArnett:
http://www.misuse.org/science/2008/01/30/mojomagick-ruby-image-library-for-imagemagick/20:52 <+plaggypig> ShayArnett: also the new rmagick 2 allegedly solves some memory issues
20:52 <+ShayArnett> just need something lightweight and simple
20:52 <+ShayArnett> :D
20:52 <+ShayArnett> thanks ez
20:53 <+eoghanj> so for controllers etc
20:53 <+eoghanj> is it merb-gen controller blah
20:53 <+eoghanj> ?
20:54 <+neaf> eoghanj: Yeah.
20:54 <+Judofyr> was 0.9.1 public release too?
20:54 <+eoghanj> cool thanks
20:56 <+simmel> ShayArnett imagescience is neat
20:56 <+simmel> ShayArnett Doesnt support much, but it is enough for me.
20:56 <@ezmobius> 0.9.1 was a dev release
20:56 <+ShayArnett> simmel: but isn't imagescience a bitch to install on some platforms? becuase of the image library it used or something?
20:56 <+simmel> Worked for me on OS X.
20:58 <+sintaxi_> ShayArnett: ImageScience uses Freeimage. I think package managers can take care of everything for you.
20:58 <+eoghanj> is there a rake stats as with rails?
20:59 <+Judofyr> what's the difference between merb and merb-core gems?
20:59 <+eoghanj> ive checked the rake --tasks and dont see one similar
21:00 <+simmel> hey sintaxi_, you're missing a d in "sen and retrieve" in your resume = )
21:01 <+sintaxi_> simmel: haha. thanks :)
21:02 <+simmel> sintaxi_ np = )
21:02 <+daikini> eoghanj: the merb gem installs merb-core and merb-more
21:02 <+simmel> I crawled your ass sintaxi_. It's a habit, someone gives me a link and I visit every page that that one links to and so on for atleast half an hour.
21:03 <+eoghanj> daikini: these have stat functions?
21:04 <+daikini> eoghanj: not sure what you mean, like rake stats?
21:04 <+eoghanj> daikini: yep, i was asking about rake stat, not sure if you mixed me up with someone else
21:05 <+Judofyr> what's the simplest way to manage uploads with Merb?
21:06 <+sintaxi_> simmel: scary, I write all my sites with the thought that no one ever sees them ;)
21:06 <+daikini> eoghanj: there does not appear to be a rake stats command
21:06 <+simmel> sintaxi_ ; )
21:07 <+ec> Sexy!
21:07 <+ec> sake -i
http://github.com/ivey/merb-dev/tree/master/merb-dev.rake?raw=true21:27 <+neaf> How to get error messages for specified field with form_for ?
21:31 <+myobie> how do i tell two memcache servers to replicate each other?
21:32 * ShayArnett waits for 18776 items to be imported to his db
21:45 <+pjb3> Can anyone explain how in this generator:
21:45 <+pjb3>
http://github.com/wycats/merb-more/tree/master/merb-gen/merb_default_generators/resource_controller/templates/app/controllers/%25controller_file_name%25.rb21:45 <+pjb3> The actual body of the methods get populated with what they do
21:45 <+pjb3> that file just has render in the body of each method
21:47 <+ShayArnett> pjb3: gets extended by the ORM generators probably
21:47 <+pjb3> ShayArnett: ah, that's it
21:53 <@ivey> because you could have an ORMless resource
21:55 <+context> what is frozen-merb :x
21:55 <@ivey> runs merb libs our of framework/merb-*
21:56 <@ivey> it generates a script/frozen-merb iirc
21:56 <+context> yeah
21:56 <+context> what it like actually do though, or is there some where i should be reading
21:58 <+kw> hi, I was interested in implementing sequel for merbful_authentication, who should I contact?
21:58 <@ivey> all it does is monkey with require()
21:58 <@ivey> and then run the regular merb
21:58 <+ShayArnett> kw: hassox
21:59 <+ShayArnett> kw: but if your just needing help i could probably help you
21:59 <+kw> I was thinking of doing it for google summer of code since I'm working on sequel/merb right now for a project
22:02 <+ShayArnett> kw: i'm not sure how the whole thing works... if you need to get a sponsor and what not...
22:03 <+ShayArnett> but when you get that lined out... i would suggest generating auth using ar or dm and then swapping in your sequel until specs and tests pass (might need some adjusting)
22:04 <+ShayArnett> then you could start moving things over to the generators
22:07 <+sci-dev> hi, 0.9.2 is a great release
22:07 <+sci-dev> just one problem for me
22:07 <+sci-dev> it wont load index.html.haml by default, erb one removed, app restarted but it says No template found index.html.*
22:07 <+sci-dev> thanks
22:08 <@ivey> sci-dev: do you have merb-haml installed?
22:08 <@ivey> and did this work in 0.9.1?
22:09 <+sci-dev> ivey: sure
22:09 <+sci-dev> in 0.5 in fact
22:09 <@ivey> hmm
22:09 <@ivey> but yes in 0.9.1, as well
22:09 <@ivey> ?
22:09 <+sci-dev> did not tried 0.9.1
22:09 <+sci-dev> from 5 dirrectly to 0.9.2
22:10 <@ivey> hmm
22:10 <@ivey> works on other templates just not index?
22:10 <@ivey> or haml just doesn't work?
22:11 <+sci-dev> it looks like he want to load index.html.erb and not haml
22:11 <+sci-dev> gem list says
22:11 <+sci-dev> merb-haml (0.9.2)
22:12 <+kw> I keep getting this error when I edit a Sequel model file and refresh: /usr/local/lib/ruby/gems/1.8/gems/merb-core-0.9.1/lib/merb-core/bootloader.rb:268:in `remove_const': `#<Class:0x1e00dd4>' is not allowed as a constant name (NameError)
22:12 <+sci-dev> haml works, cause i'm rendering templates before index
22:12 <+kw> anyone else get that?
22:13 <@ivey> sci-dev: weird
22:14 <+ShayArnett> sci-dev: did you just now add the index.html.haml ? have you restarted the merb server since you added it?
22:17 <+sci-dev> sure, restarted many times
22:17 <+sci-dev> lol
22:17 <+sci-dev> render(:template =>"index.html.haml")
22:17 <+sci-dev> No template found at /data/hosts/restusa/src/app/views/index.html.haml.*
22:18 <+sci-dev> ops
22:18 <+sci-dev> nope, render(:template =>"search/index.html.haml") says the same
22:20 <+neaf> sci-dev: render(:template =>"index.html") ?
22:21 <+neaf> sci-dev: render(:template =>"search/index.html") - whatever :)
22:22 <+sci-dev> No template found at /data/hosts/restusa/src/app/views/search/index.html.*
22:22 <+sci-dev> server says
22:22 <+sci-dev> -rw-r--r-- 1 admin admin 12K Mar 25 20:37 /data/hosts/restusa/src/app/views/search/index.html.haml
22:22 <+sci-dev> trying to update haml
22:24 <+sci-dev> updated, merb restarted
22:24 <+sci-dev> to be sure there are no other instances
22:24 <+sci-dev> merb -K
22:24 <+sci-dev> same, it does not see the file
22:26 <+sci-dev> ivey: ~ No template found at /data/hosts/restusa/src/app/views/search/index.html.* - (Merb::ControllerExceptions::TemplateNotFound)
22:26 <+sci-dev> /usr/local/lib/ruby/gems/1.8/gems/merb-core-0.9.2/lib/merb-core/controller/mixins/render.rb:64:in `render'
22:26 <+sci-dev> /data/hosts/restusa/src/app/controllers/search.rb:8:in `index'
22:26 <@ivey> that's nuts
22:26 <@ivey> and you have 'require "merb-haml"' somewhere, right?
22:27 <+midget_nuts> who's nuts?
22:27 <@ivey> you are
22:27 <+midget_nuts> hell yeah.
22:28 <+GMFlash> lol i imagined you bursting through a wall like the kool-aid man saying "who's nuts?"
22:28 <@ivey> ohhh yeahhhhh!
22:28 <+sci-dev> ivey: sorry
22:28 <+sci-dev> should not dependency "haml" do the same?
22:28 <@ivey> no
22:28 <+daikini> sci-dev: Can you pastie your search.rb?
22:28 <@ivey> that loads haml
22:28 <@ivey> you need merb-haml too
22:28 <+context> uhh anyone here use merbful_authentication
22:28 <+context> i get this err:
22:28 <+context> liquid:~/loads context$ merb-gen authenticated User Session
22:28 <+context> wrong number of arguments (2 for 0)
22:28 <@ivey> and just use require, it's the same thing
22:29 <@ivey> well basically the same
22:29 <+sci-dev> ok, thanks
22:29 <+sci-dev> forgot to require
22:29 <+sci-dev> in fact it were work without in 5
22:29 <+context> so much for merbful_auth :/
22:29 <@ivey> sci-dev: right
22:29 <@ivey> haml was built in in 0.5
22:29 <@ivey> before the -core -more splot
22:30 <@ivey> context: lots of people use it
22:30 <+sci-dev> thanks, going to take some read over 9
22:30 <+context> ivey. but its not wokring
22:31 <@ivey> context: do you have "require 'merb-more'" or at least "require 'merb-action-args'" in your init.rb or somewhere?
22:31 <@ivey> IIRC merbful_auth uses action-args
22:35 <+context> ivey. ahh kk
22:35 <+langenberg> Wonderful! Just finished a multi-site and multi-layout CMS system in merb.
22:36 <+langenberg> including a template / theme editor
22:37 <+context> ivey. still get the same thing
22:37 <+neaf> Anyone knows how to check if everything is allright with merb fcgi setup bypassing Apache? I can't run merb on Dreamhost and I don't know what's wrong when I get 500 error.
22:38 * context digs deeper
22:38 <+langenberg> bbl
22:38 <+GMFlash> neaf: make sure that merb.fcgi is executable. i checked the latest 0.9.2 gem and it was not
22:39 <+context> neaf. check apache error log also ..
22:39 <+GMFlash> also you may need a .htaccess file:
http://pastie.caboo.se/16942322:40 <+GMFlash> wtf was that brainopia? he sent me O.O
22:40 <+neaf> GMFlash: merb.fcgi is executeble, but I had to move it to subdomain directory and change merb_root.
22:40 <+neaf> context: I get incomplete headers error.
22:41 <+neaf> GMFlash: I have .htaccess :)
22:41 <+GMFlash> you're using 0.9.2?
22:41 <+neaf> GMFlash: Yes.
22:42 <+neaf> ( Where to change merb enviroment ? )
22:42 <+GMFlash> it probably has something to do with you changing paths
22:42 <+GMFlash> all i did was add the .htaccess and chmod +x merb.fcgi and it worked
22:42 <+GMFlash> and set a :path_prefix
22:43 <+neaf> GMFlash: Which hosting?
22:43 <+GMFlash> my own server, but i imagine dreamhost would be similar
22:44 <+neaf> GMFlash: I'll try to play around it.
22:44 <+jamiehoover> You guys should take full control of everything with a slicehost slice. I don't have any of these types of issues anymore. :)
22:47 <+context> grr this is starting to bug me
22:50 <+context> ivey. its not the code thats not working, its the generator itself
22:51 <@ivey> context: weird
22:51 <@ivey> jamiehoover: we need it to work on shared hosting too, though
22:51 <@ivey> site5 is $5 a month
22:51 <@ivey> $5
22:51 <@ivey> a month
22:52 <@ivey> but yes
22:52 <+ShayArnett> context: 0.9.2 merb gems?
22:52 <@ivey> it is usually better to not run real apps on shared hosts
22:52 <+jamiehoover> If enough of us used virtualization sites like slicehost, they could be $5 a month. ;)
22:52 <+jamiehoover> Viva la virtualization!
22:53 <+jamiehoover> I understand the need to support on shared hosting. Just got burnt by each and every one at some point.
22:53 <+context> shayarnett. merb 0.9.2 merbful 0.9.1
22:53 <+jamiehoover> I mean honestly, does anyone really WANT a control panel? lol
22:54 <+context> jamiehoover. do you use slicehost? if so is the performance good ?
22:54 <+jamiehoover> Yes, and yes.
22:54 <+context> i dispise control panels
22:54 <+context> despise ? :x
22:54 <+ShayArnett> context:
http://merbums.merborials.com http://merborials.com and
http://cornettauto.com all on slicehost
22:54 <+jamiehoover>
http://jamiehoover.com22:55 <+sintaxi_> +1 vote for slicehost
22:55 <+jamiehoover> Not much, but I only just deployed it last night.
22:55 <+pjb3> ShayArnett: one slice or 3 slices
22:55 <+ShayArnett> 2 cornett auto is on it's own as it was a contract job
22:55 <+ShayArnett> but merbums and 2 mongrels for merborials are running on the other with some memory to spare
22:56 <+jamiehoover> One slice of ubuntu gutsy server, merb 0.9.2, thin x 2, datamapper to sqlite3 :)
22:57 <+jamiehoover> I'm now a merboholic. Installing a new ubuntu server at work (Yahoo) for search team to prototype with.
22:57 <+context> ill have to jump on the bandwagon ;)
22:57 <+Booster> ShayArnett, you live on Somerset Road? I know where that is, lol.
22:58 <+GMFlash> is it normal for my merb app's memory usage to grow even though nobody is hitting it?
22:58 <+ShayArnett> Booster: nope
22:58 <+GMFlash> it's just a freshly generated app, didn't touch a thing
22:58 <+jamiehoover> Also built a VMware ubuntu to run on our MacBook Pros as local dev environments. Merb is everywhere. ;)
22:58 <+Booster> ShayArnett, ah.. -was going by the address on hotwire productions- lol
22:58 <+ShayArnett> Booster: hotwire isn't me :D
22:59 <+Booster> ShayArnett, ah... lol
22:59 <+blakemizerany> how does one get the configured path to the root of the views?
22:59 <+ShayArnett> i live near the corner of 16th st and falls road... about a mile off main street
22:59 <+Booster> ShayArnett, cool.
23:00 <+GMFlash> blakemizerany: are you still working on sinatra?
23:00 <+ShayArnett> blakemizerany: Merb.dir_for(:views) maybe... would have to look and see
23:01 <+ShayArnett> context: auth generator is definately busted
23:01 <+context> shayarnett. ;)
23:02 <+blakemizerany> ShayArnett: thx!
23:02 <+blakemizerany> GMFlash: yes.
23:02 <+blakemizerany> working on a plugin for Merb right now though
23:03 <+GMFlash> cool i like that framework too! (sinatra)
23:03 <+blakemizerany> thx
23:03 <+GMFlash> did you see that merb does single file apps now?
23:03 <+Damm> yes
23:03 <+blakemizerany> check it out on github for the latest... back to merbn
23:03 <+blakemizerany> yup
23:03 <+Damm> merb can do single file apps
23:03 <+GMFlash> very-flat apps :)
23:04 <+Damm> very very flat
23:04 <+Damm> but yep, great way to handle uploads
23:04 <+sintaxi_> Damm: Damn right.
23:04 <+Damm> if you run an gallery or image forum just write an uploader in merb so you can not have to taint your rails and make it do things it just can't do.
23:05 <+context> but time to run home
23:05 <+context> ill try to figure it out later on
23:05 <+context> thnx ivey, shayarnett
23:08 <+jamiehoover> I didn't realize that 0.9.2 was pushed to rubyforge. Congrats you guys!
23:09 <+jamiehoover> No more slow merbivore gem server. ;)
23:09 <@ezmobius> ;)
23:10 <+sintaxi_> oh man. I cant even begin to tell you guys how sweet I think merb is.
23:10 <+sintaxi_> seriously, thank you.
23:10 <+ShayArnett> you can begin too... you'll just never finish :P
23:10 <+GMFlash> ezmobius: i tried merb-gen on 0.9.2 and the latest git but didn't see .htaccess in there or +x on merb.fcgi, does that still need to be pushed?
23:11 <@ezmobius> git cannot do file permissions
23:11 <+swarer> I miss louie though
23:11 <@ezmobius> it cant set it executable
23:11 <@ezmobius> GMFlash: .htaccess is in there
23:12 <+GMFlash> hmm strange. i swear i didn't see it when i gen'd my app
23:13 <+GMFlash> i know git can't set it +x but can't merb-gen +x it?
23:15 <+jamiehoover> How come no 0.9.2 documentation on merbivore yet?
23:15 <+GMFlash> ezmobius:
http://pastie.caboo.se/private/939b9uso3aiylgwgqrv3g is my results from a freshly generated app
23:15 <+jamiehoover> A lot of first impressions are going to be made. ;)
23:16 <+octopod> my git recognizes when I chmod -x or chmod +x a file
23:16 <@ezmobius> GMFlash: hmm maybe .htaccess needs to be added to the genwrator manifest
23:17 <+jamiehoover> I also think now would be a great time to make a tutorial on merbivore to introduce folks to 0.9.2.
23:18 <+GMFlash> all that stuff is scheduled for the 1.0 launch
23:18 <+jamiehoover> ic
23:18 <+pluesch0r> GMFlash: umask
23:19 <+pluesch0r> ah. nvm.
23:19 <+jamiehoover> Except it's already 1.0, in my eyes. Already left my rails development behind.
23:20 <+GMFlash> they're working out the rough edges and polishing it up nice and smooth for a grand 1.0 release
23:21 <+GMFlash> when news hits the blogs, everything you want to know will be there
23:28 <@ezmobius> jamiehoover: im putting 0.9.2 docs on merbivore now
23:28 <+swarer> is session_id_cookie_only = false still supported in 0.9.2?
23:28 <@ezmobius> nope
23:28 <@ezmobius> you use fixatable routes now
23:28 <@ezmobius> do you need to allow sessions in the query stgring?
23:29 <+jamiehoover> Frankly, I'd like to see more discipline with documentation for merb compared to rails. Rails documentation is always out of date. Even on their own web site.
23:30 <+GMFlash> a simple rake task on the server would take care of that
23:30 <@ezmobius> there is a rake task on the server
23:30 <@ezmobius> it updates the HEAD docs every night
23:30 <@ezmobius> i just forgot to add the 0.9.32
23:30 <+Shay-food> ARGV[1..-1]
23:30 <+Shay-food> in a 5 part array what is 1..-1
23:30 <@ezmobius> it means the second elemet thru the last element
23:31 <+Shay-food> ok
23:31 <@ezmobius> >> [1,2,3,4,5][1..-1]
23:31 <@ezmobius> => [2, 3, 4, 5]
23:34 <+midget_nuts> ivey: the fixation bug still exists . . . im trying to figure out the best place for moving the fixation check . . . think maybe it should exist in the dispatcher somewhere? it needs access to the request and the route for it to work properly
23:35 <+swarer> midget_nuts: what's the fixation bug?
23:35 <+oj> Has anybody seen any write-ups on replacing RJS with .js.erb? Partial rendering within .js.erb is really causing me some grief in my current Rails to Merb port.
23:36 <+midget_nuts> where my_route.fixatable() doesnt allow you to modify the session id.
23:36 <+swarer> ahh ok
23:36 <+midget_nuts> ticket 204 . . .
23:36 <+swarer> thanks
23:37 <+midget_nuts> i wrote the original code, but access to route information was removed from controller so it gets a method call on nil error now...
23:38 <+swarer> something like undefined method `allow_fixation?' for nil:NilClass - (NoMethodError)
23:41 <+midget_nuts> yep
23:41 <+swarer> bummer, that's what I'm getting lol
23:41 <+midget_nuts> trying to use it for flash uploads?
23:41 <+swarer> yup
23:42 <+swarer> and have to support 8
23:42 <+midget_nuts> sweet, thats what I wrote it for . . . thats why I need to get it working again ;)
23:43 <@ezmobius> docs updated
23:44 <+blakemizerany> any good docs on merb plugins?
23:44 <+blakemizerany> creating one and loading it
23:46 <@ezmobius> merb-gen plugin foo
23:46 <@ezmobius> will create the whole skelton for you
23:46 <+blakemizerany> correction. just loading. I can't find anything on where to put in
23:46 <@ezmobius> other then that look at the plugins in merb_plugins to see how they load
23:47 <@ezmobius> its just ruby so its up to you how you want to load things in
23:47 <+blakemizerany> right. gotcha. don't know where to put the dir to my app sees and loads it.
23:47 <@ezmobius> its a gem
23:47 <@ezmobius> so in the pliugin
23:47 <@ezmobius> rake install
23:47 <@ezmobius> then jjst require it in init.rb
23:47 <+blakemizerany> can you freeze it to an app?
23:47 <@ezmobius> yes
23:48 <@ezmobius> mkdir gems
23:48 <+blakemizerany> ah. ok. I see where you're going. thx man
23:48 <@ezmobius> gem install /path/to/plugin.gem -i gems
23:49 <+midget_nuts> swarer: actually i just got it working, will submit the patch in a minute...
23:51 <+Shay-food> anyway to get more precise error than a backtrace?
23:52 <+swarer> midget_nuts: excellent
23:54 <+midget_nuts> also, just a heads up, I think it only works currently with MemCached or DB sessions . . . the session_secret_key gets all wonky with changing the session key with only cookies
23:55 <+swarer> that''s fine I'm using db sessions
--- Log closed Wed Mar 26 00:00:41 2008