<   January 2012   >
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:10 js__ joined
00:39 Ownatik joined
00:52 rstacruz joined
01:18 savage- joined
01:20 waxjar joined
01:30 ABK joined
01:36 banseljaj joined
01:39 adeponte joined
01:41 achiu joined
02:32 ojak joined
02:32 alexeyKolosov joined
02:35 beny joined
02:49 _pke_ joined
02:50 kaliya joined
02:50 japaniel left
02:57 js__ joined
03:12 zmack joined
03:30 Johnnus_ joined
03:31 sts joined
03:55 Jippi joined
04:01 waydotnet joined
04:09 <Johnnus_> i'm having some problems that i suspect are related to ruby more than sinatra, maybe i'm not understanding namespacing correctly? could anyone have a look? http://pastie.org/private/mk47bz7kksid6vzromin2a
04:11 <Afal> how are you running this?
04:13 <Johnnus_> rackup on the config.ru file, it just mounts the application on /
04:13 <Johnnus_> with Rack::URLMap
04:14 <Afal> hm
04:14 eka joined
04:15 <Johnnus_> For some reason the routes does not find the model classes, i'm guessing it's not enough to require them in app.rb that includes the module where the routes are defined.. but not sure where to include the models then, to have the routes access them
04:16 <Afal> I'm not sure :\
04:34 robotmay joined
05:29 eignerchris joined
06:06 antinitro___ joined
06:55 zmack joined
06:56 tbuehlmann joined
07:25 canton7 joined
07:27 beny joined
07:46 tjeden joined
07:47 tbuehlmann joined
08:10 edzhelyov joined
08:48 wasy joined
08:53 msch joined
08:53 <msch> hi, is there a way to split one sinatra app into multiple files?
08:55 <tbuehlmann> sure, just do so and require the files
09:05 tkellen joined
09:17 <msch> tbuehlmann: k.
09:17 <msch> tbuehlmann: and is there a helper for redirecting with a certain status? e.g. 201 Created ?
09:21 <tbuehlmann> yep, `redirect '/foo', 201`
09:28 sbeam_ joined
09:41 <Rennex> except 201 is not a redirection
09:42 <tbuehlmann> correct
09:52 edzhelyov joined
10:00 beny joined
10:07 lupisak joined
10:10 Phrogz joined
10:20 msch left
10:30 Ownatik joined
11:02 vmoravec joined
11:07 ckrailo joined
11:16 thomasdebenning joined
11:23 Johnnus_ joined
11:40 achiu joined
11:40 v0n joined
11:40 rsinger joined
11:57 hadees joined
12:12 adeponte joined
12:13 ojak joined
12:20 savage- joined
12:22 achiu joined
12:22 waxjar joined
12:24 tkellen joined
12:30 thegeekinside joined
13:01 <Mathetes> [00rss] <dhill.nov...@gmail.com (ssswdon)> using erb/haml methods from a service layer - http://z.pist0s.ca/10iK
13:12 banseljaj joined
13:16 Phrogz joined
13:23 slloyd joined
13:25 evan_luck joined
13:26 rstacruz joined
13:28 rsinger joined
13:28 ewdafa joined
13:28 josh9 joined
13:28 flexd joined
13:29 TrevorBramble joined
13:29 dv_ joined
13:30 mjw2 joined
13:30 rsinger joined
13:30 foca joined
13:33 eignerchris joined
13:35 wasy joined
13:40 tian2992 joined
13:59 achiu joined
14:06 rstacruz joined
14:18 n8ji joined
14:25 zmack joined
14:52 dlazar joined
15:17 beny joined
15:26 bingomanatee_ joined
15:30 marvin_ joined
15:35 tjeden joined
15:38 postmodern joined
15:48 tla joined
15:51 Mathetes joined
16:03 mann3qu1n joined
16:04 mann3qu1n joined
16:13 zmack joined
16:19 Phrogz joined
16:23 adeponte joined
16:58 hexreel joined
16:59 AriT93Mac joined
17:06 regedarek joined
17:06 <regedarek> Hi
17:06 <regedarek> i have problem
17:06 sbeam__ joined
17:08 <tbuehlmann> let hear
17:10 <regedarek> ttps://github.com/regedarek/hkshop this is my project
17:11 <regedarek> https://github.com/regedarek/hkshop
17:11 <regedarek> I trying too add active record
17:12 <regedarek> but when im trying to run rake -T
17:12 <regedarek> i recieve error no such file to load -- hkshop.rb
17:13 <tbuehlmann> using rails >=1.9.2?
17:13 <regedarek> yes
17:14 <tbuehlmann> try `require_relative 'hkshop', `require './hkshop'` or add "." to the load path with `$LOAD_PATH.unshift '.'`
17:15 <regedarek> ok, im trying to follow this doc https://github.com/bmizerany/sinatra-activerecord
17:16 <regedarek> thanks, ./hkshop works
17:18 Phrogz joined
17:21 achiu joined
17:22 <tbuehlmann> :)
17:25 savage-_ joined
17:34 chiel joined
17:34 <chiel> Hi all. What is the proper way to unset a header that sinatra sets by default? currently I am simple setting the header to an empty string, but that seems kinda... dirty.
17:35 savage- joined
17:40 <tbuehlmann> it's actually just a hash, so you can delete key value pairs from it with `headers.delete 'key'`
17:40 <chiel> oh, okay, sweet :)
17:40 <chiel> i did not know that :D
17:40 <chiel> tbuehlmann: thanks! :)
17:40 <tbuehlmann> welcome!
17:43 <chiel> tbuehlmann: awh, it doesn't work. :(
17:43 <tbuehlmann> it should!
17:43 <tbuehlmann> have an example?
17:43 <chiel> I'm trying to delete the X-Frame-Options header, so it should be `headers.delete 'X-Frame-Options'`, right?
17:44 <tbuehlmann> think so, yes
17:44 <chiel> weird.
17:44 <chiel> cause it's an iframe, and it's saying "Refused to display document because display forbidden by X-Frame-Options."
17:44 <chiel> which will only happen if it's set
17:45 <chiel> if i do `headers 'X-Frame-Options' => ''` it works just fine
17:45 <chiel> it just seems kinda disgusting to have an empty header
17:45 <chiel> hence my wish to improve it :)
17:45 adeponte joined
17:47 <tbuehlmann> yea, I see..
17:52 <tbuehlmann> well, works for me as expected
17:59 tla joined
18:05 Ownatik joined
18:24 Phrogz joined
18:26 <chiel> tbuehlmann: really? O.o
18:26 <chiel> damn that's weird :)
18:27 <chiel> tbuehlmann: I get "
18:27 danishkhan joined
18:27 <chiel> "X-Frame-Options: sameorigin"
18:27 <chiel> even if I do headers.delete 'X-Frame-Options'
18:29 <regedarek> Hi guys, i would like to use custom encryptor in Warden like this: https://github.com/plataformatec/devise/wiki/How-To:-Create-a-custom-encryptor
18:29 <regedarek> it is possible??
18:29 <regedarek> becose i need double MD5
18:33 tian2992 joined
18:39 thomasdebenning joined
18:57 mephux joined
19:07 <regedarek> i found https://github.com/shuber/encryptor aybe i need this??
19:10 hadees joined
19:18 burgestrand joined
19:24 adeponte joined
19:25 Phrogz joined
19:26 Phrogz joined
19:34 hadees joined
19:56 pranq_ joined
19:56 sbeam_ joined
19:58 thenagain joined
20:04 zzak joined
20:12 Ownatik joined
20:18 zzak joined
20:19 thenagain joined
20:21 heroiceric_ joined
21:05 achiu joined
21:08 nerdy joined
21:28 achiu joined
22:14 btanaka joined
22:18 n8ji joined
22:29 adeponte joined
23:15 tkellen joined
23:33 antinitro_ joined