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: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
<mouse-_>
hey all, is there a preferred in-code comment/doc system that people use?
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:03
<dekroning>
cypher23: ah no your right! thanks :-) i accidently did it on the id= argument
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 :)
07:19
hipertracker joined
08:00
rmontgomery429 joined
09:12
<somebee>
any hints on when 1.0 might be released?
10:16
bradgonesurfing 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:58
rmontgomery429_ joined
11:43
bradgonesurfing joined
11:43
bradgonesurfing left
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:56
<halorgium>
WALoeIII: hah, using shotgun with thin is crazy ;)
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:05
<khaase>
WALoeIII: Well actually... server.delete "thin" probably won't work. But you could do a set :server, "mongrel"
12:11
<khaase>
rtomayko: ping
12:12
<khaase>
rtomayko: you where mentioning that on the mailinglist
12:13
<rtomayko>
khaase: oh nice. I missed that ticket somehow.
13:16
<gp5st>
is there a way to get the port that the server is currently running on?
13:53
mistergibson joined
15:54
<tuples_>
sinatra?q="aa" params[:q] contains aa instead of "aa" (the double quotes are missing). feature or bug?
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:40
blakemizerany joined
16:45
<joeconyers>
Does shotgun not work on windows?
16:47
<halorgium>
joeconyers: don't think so
16:47
<joeconyers>
Ugh I really gotta get a mac already
16:50
blakemizerany joined
18:25
thefifthcircuit joined
18:47
thefifthcircuit 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
<joeconyers>
guess i better go snag partition magick
20:36
<joeconyers>
What distro are you using? ubuntu?
20:38
rmontgomery429 joined
21:00
<Zamous>
Does anyone use rspec with sinatra?
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...