public
Description: Light stats
Homepage: http://rist.yreality.net
Clone URL: git://github.com/elliottcable/rist.git
A bit of tidying
elliottcable (author)
Sat May 24 18:18:00 -0700 2008
commit  c0b922230239529d3da5d32d4ab407e9bc51e835
tree    1b8a07f9fde93ea8005315713e5f32405d5811f1
parent  de6bda38ecab713f130398187a7fd845234c3a44
...
26
27
28
29
 
30
31
32
 
 
 
33
34
35
...
26
27
28
 
29
30
31
 
32
33
34
35
36
37
0
@@ -26,10 +26,12 @@ class MainController < Ramaze::Controller
0
     @data = Pageload.parse_request Ramaze::Request.current
0
     @pageload = Pageload.new(@data)
0
     
0
- respond ":plain\n // 500 Internal Server Error: Error recording hit", 500 unless
0
+ respond ":plain\n // 500 Internal Server Error: Error recording hit (#{@pageload.errors})", 500 unless
0
       @pageload.save
0
     
0
- ":plain\n // #{@pageload.inspect}" # At some point, we'll return JS code here. For now... *poof*
0
+ js = "// #{@pageload.inspect}"
0
+
0
+ [":plain", js.gsub(/^/,' ')].join("\n")
0
   end
0
   
0
   define_method('main.css') do

Comments

    No one has commented yet.