<    March 2010    >
Su Mo Tu We Th Fr Sa
    1  2  3  4  5  6
 7  8  9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31
00:15 jshsu joined
00:51 kevwil joined
00:58 benlovell joined
00:59 greg8si joined
01:00 giskard joined
01:00 defunkt joined
01:01 defunkt left
01:14 hipe joined
01:14 damnpepe joined
01:14 zodiak joined
01:14 kohei joined
01:14 bweikulrich joined
01:14 maddox_ joined
01:14 mr-rock joined
01:14 erthad joined
01:14 Scyllinice joined
01:14 yawniek joined
01:14 sr joined
01:14 halorgium joined
01:14 dnyy joined
01:14 tdmackey joined
01:14 hyperspace joined
01:14 tizoc joined
01:14 jpld joined
01:14 kevwil joined
01:15 jpld joined
01:29 ph^_ joined
01:39 RichGuk joined
01:54 ph^_ joined
01:56 gma joined
01:56 gma joined
02:08 crohr joined
02:17 karmi joined
02:19 qwerxy joined
02:24 kevwil joined
02:29 giskard joined
02:33 anatoo joined
02:38 mitkok joined
02:39 benlovell joined
02:48 ph^_ joined
02:48 dekroning left
02:48 dekroning joined
02:48 dekroning left
02:48 dekroning joined
02:52 <dekroning> is there away to easily make a form, which contains an array of notes? i now just do name="post[notes][0]", name="post[notes][1], etc however i now need to do some pre database saving, and convert this params hash of notes into a json array, is there perhaps a better/easier way of doing this?
02:56 khaase joined
02:59 <cypher23> dekroning, try using post[notes][]
02:59 <dekroning> cypher23: k let me try
03:00 <dekroning> cypher23: toobad doesn't work, it will just get a "notes" : "text-from-last-note"
03:00 RichGuk joined
03:00 <mouse-_> hey all, is there a preferred in-code comment/doc system that people use?
03:01 kristopher joined
03:01 <dekroning> cypher23: i would have guess something like this in form input would be used a lot, but i can't find anything about it either (easily) on google
03:02 kristopher_ joined
03:03 <dekroning> cypher23: ah no your right! thanks :-) i accidently did it on the id= argument
03:09 <khaase> sr: ping
03:25 kevwil joined
03:25 <cypher23> mouse-_, not really. most people use RDoc, since that comes with Ruby, but YARD is also very nice, and rocco looks sweet too (http://github.com/rtomayko/rocco/)
03:28 ph^_ joined
03:30 <khaase> mouse-_: also, to be in advertising mode again, i wrote a plugin for yard to generate docs for sinatra routes.
03:30 <khaase> rocco is more for code reading than api documentation, i think
03:31 <cypher23> true. but he didn't specify what kind of docs he wanted :)
03:58 fermion joined
04:04 erthad joined
04:07 hipe joined
04:11 hipe joined
04:13 khaase joined
04:17 khaase joined
04:18 fbru02 joined
04:25 fbru02 joined
04:28 jhenderson joined
05:02 qwerxy joined
05:04 lupine_85 joined
05:06 qwerxy joined
05:06 lupine_85 joined
05:15 hassox joined
05:46 jhenderson joined
06:09 hipe_ joined
06:18 neaf joined
06:25 SeanLazer joined
06:35 coderdad joined
06:55 neaf joined
06:58 neaf_ joined
07:02 loincloth joined
07:08 tbuehlmann joined
07:18 SeanLazer joined
07:18 foobarbaz joined
07:19 hipertracker joined
07:21 imajes joined
07:36 docelic_ joined
07:38 mjw2 joined
07:39 soveran joined
07:40 soveran joined
07:41 soveran_ joined
07:41 soveran_ left
07:43 gma_ joined
07:54 eladmeidar joined
08:00 cfurrow joined
08:00 rmontgomery429 joined
08:12 burlyscudd joined
08:29 djanowski joined
08:47 soveran joined
09:12 somebee joined
09:12 <somebee> any hints on when 1.0 might be released?
09:31 ph^_ joined
09:38 tibaza` joined
09:43 fbru02 joined
09:52 kristopher joined
09:54 fbru02 joined
10:00 fbru02 joined
10:05 mtkd joined
10:08 drev1 joined
10:16 bradgonesurfing joined
10:20 rtomayko joined
10:28 defunkt joined
10:28 cfurrow joined
10:29 rmontgomery429 joined
10:29 <rmontgomery429> Anybody working with AppEngine? I'm looking for guidance how how best to handle Authorization inside a sinatra app. If you have any links or tips - it would be much appreciated.
10:30 neaf joined
10:33 neaf_ joined
10:35 neaf joined
10:50 lala joined
10:53 neaf joined
10:55 neaf_ joined
10:58 cpjolicoeur joined
10:58 rmontgomery429_ joined
11:07 towski joined
11:15 qwerxy_ joined
11:23 defunkt joined
11:23 imajes joined
11:26 eddanger joined
11:27 bleything joined
11:28 hipe joined
11:29 stepheneb joined
11:43 bradgonesurfing joined
11:43 bradgonesurfing left
11:46 WALoeIII joined
11:47 <WALoeIII> shotgun is blowing up on me: /Users/Andrew/.rvm/gems/ree-1.8.7-2009.10/gems/eventmachine-0.12.10/lib/eventmachine.rb:572:in `start_tcp_server': no acceptor (RuntimeError)
11:48 fbru02 joined
11:53 giskard joined
11:55 joeconyers joined
11:56 <halorgium> WALoeIII: hah, using shotgun with thin is crazy ;)
11:57 zodiak joined
11:59 <WALoeIII> halorgium: it just picks it by default, I will try w/ mongrel
12:00 <WALoeIII> I hadn't thought about that
12:00 <WALoeIII> halorgium: works great w/ mongrel
12:01 <halorgium> WALoeIII: yer, EM + forking -======== death
12:02 <khaase> WALoeIII: do server.delete "thin" in your app file somewhere
12:02 <khaase> or don't use shotgun (that's what i do)
12:03 arnaudsj joined
12:03 RichGuk joined
12:05 <khaase> WALoeIII: Well actually... server.delete "thin" probably won't work. But you could do a set :server, "mongrel"
12:05 <khaase> or -s
12:09 arnaudsj left
12:11 <khaase> rtomayko: ping
12:11 <khaase> rtomayko: did you by any chance take a look at https://sinatra.lighthouseapp.com/projects/9779/tickets/333-conditional-before-filters ?
12:12 <khaase> rtomayko: you where mentioning that on the mailinglist
12:13 <rtomayko> khaase: oh nice. I missed that ticket somehow.
12:15 arnaudsj joined
12:16 arnaudsj left
12:18 markwithout joined
12:30 jacius joined
12:46 joshpeek joined
12:52 giskard joined
13:07 cpg joined
13:08 codeswing joined
13:16 gp5st joined
13:16 <gp5st> is there a way to get the port that the server is currently running on?
13:32 gp5st joined
13:44 stouset joined
13:44 erpuds joined
13:48 gp5st left
13:52 giskard joined
13:53 mistergibson joined
14:01 mitkok joined
14:01 tibaza` left
14:09 futurechimp joined
14:11 arnaudsj joined
14:12 arnaudsj left
14:20 pedrobelo joined
14:31 fbru02 joined
14:49 syd_ joined
14:53 qwerxy joined
15:04 syd_ joined
15:15 futurechimp joined
15:18 cfurrow joined
15:24 quirkey joined
15:38 arnaudsj joined
15:38 arnaudsj left
15:52 alt1 joined
15:54 tuples_ joined
15:54 <tuples_> sinatra?q="aa" params[:q] contains aa instead of "aa" (the double quotes are missing). feature or bug?
15:55 ph^___ joined
15:57 <tuples_> It only happens if the double quotes are the outermost characters. sinatra?q= "aa" will properly return ' "aa"'
15:57 <tuples_> very strange behaviour.
16:14 SeanLazer joined
16:28 kristopher_ joined
16:29 SkramX_ joined
16:31 hassox joined
16:35 rtomayko joined
16:36 mattly joined
16:36 persson joined
16:36 shift joined
16:40 blakemizerany joined
16:45 <joeconyers> Does shotgun not work on windows?
16:46 has_rb joined
16:47 <halorgium> joeconyers: don't think so
16:47 <joeconyers> Ugh I really gotta get a mac already
16:50 mattly joined
16:50 persson joined
16:50 shift joined
16:50 blakemizerany joined
16:52 harryv_ joined
16:52 postmodern_ joined
16:54 drev1 joined
16:58 dancroak joined
16:59 mattly joined
16:59 persson joined
16:59 shift joined
17:01 r11t joined
17:01 focab joined
17:02 zodiak joined
17:03 russm joined
17:05 flexd_ joined
17:07 jshsu joined
17:15 hipe joined
17:15 levifig joined
17:19 lantins joined
17:24 chuck_ joined
17:25 stepheneb joined
17:30 Craig` joined
17:30 <Craig`> hey guys
17:33 fbru02 joined
17:39 muescha joined
17:39 towski joined
17:46 quirkey joined
17:51 rsterner joined
17:53 khaase joined
17:55 stepheneb joined
17:58 postmodern joined
18:02 stepheneb joined
18:10 qwerxy_ joined
18:17 joeconyers joined
18:25 thefifthcircuit joined
18:28 markwithout joined
18:47 thefifthcircuit joined
18:54 WALoeIII left
18:58 kohei joined
19:09 SeanLazer joined
19:11 joshpeek joined
19:12 quirkey joined
19:14 petercooper joined
19:28 erpuds joined
19:29 soveran joined
19:47 dark joined
19:55 quirkey joined
20:17 cfurrow joined
20:19 has_rb joined
20:20 stepheneb joined
20:22 stouset joined
20:33 <dnyy> joeconyers: linux? ;o
20:33 <joeconyers> dnyy: debating it
20:34 <dnyy> joeconyers: you can always dualboot/vm, no reason not to. :>
20:34 <joeconyers> dnyy: only have a 90 gig hd in this thing
20:34 <joeconyers> yeah was thinking dualboot
20:34 <joeconyers> with maybe 15 gigs on it, just for development
20:34 <dnyy> my current install only takes up 4.4gb with a few games and a full dev env set up.
20:35 cfurrow joined
20:35 <joeconyers> Nice
20:35 <joeconyers> guess i better go snag partition magick
20:36 <joeconyers> What distro are you using? ubuntu?
20:36 <dnyy> arch
20:36 <dnyy> http://archlinux.org :o
20:37 <joeconyers> yeah
20:38 rmontgomery429 joined
20:47 hadees joined
20:49 soveran joined
21:00 Zamous joined
21:00 <Zamous> Does anyone use rspec with sinatra?
21:06 arnaudsj joined
21:06 arnaudsj left
21:13 hipe joined
21:15 joeconyers joined
21:22 stouset joined
21:30 zodiak joined
21:33 cpg joined
21:43 hipe joined
22:03 markwithout joined
22:04 muescha joined
22:26 anatoo joined
22:34 stouset joined
22:58 warthurton joined
23:11 rohit joined
23:15 hipe joined
23:21 rohit left
23:22 zoo-zed joined
23:43 jshsu joined
23:47 <russm> do I need to do anything special to enable (or not disable) the http verb hack in rack/sinatra? I have a form which includes "<input name='_method' type='hidden' value='delete' />" but when submitting it I get the Sinatra error page saying I should define a post handler for the URL I'm submitting to...
23:48 <russm> I've got "enable :method_override" in my config.ru <http://config.ru>, and dumping the rack environment in a before filter includes "REQUEST_METHOD"=>"POST" and "rack.request.form_hash"=>{"_method"=>"delete"} - I'd think this should have been updated to "REQUEST_METHOD"=>"DELETE" by the time the request hits my before handler...
23:52 <russm> hmmm... well, specifically sticking "use Rack::MethodOverride" instead of trying to get Sinatra to enable it did the job...