rack-crud 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rack/app/request_handler.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0d97b67f32a4193027fa25d133fa002f575d42e7
|
4
|
+
data.tar.gz: 18fdcecca396b1c9f5c9983c795a21f78696034b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 31cc5152a9b6f21b0435760fd7e40012eac20906ff1c29a8fcbd5531bdde6a8b388285784c08dfc164974df5e9cfe8db837d1d0e9c6297b2b03f9409626ff431
|
7
|
+
data.tar.gz: 9c7ca29f26d82a1708943facad5d5c999c1f9721127c982fabef6f40605f32e534ef896b4c96dc08fea1b4b88c607d2d965ae26c72e689d3d70803efd3f5fc85
|
@@ -8,12 +8,13 @@ class RequestHandler
|
|
8
8
|
end
|
9
9
|
|
10
10
|
def not_found
|
11
|
-
|
11
|
+
raise "Not found: #{ @env[ 'REQUEST_PATH' ]}"
|
12
12
|
|
13
13
|
Response.not_found_for '404: There is no route for your request.'
|
14
14
|
end
|
15
15
|
|
16
16
|
def get_rack_crud_js
|
17
|
+
ap Dir.pwd
|
17
18
|
Response.ok_for File.read( "public/js/#{ @url_params[ :file ]}" )
|
18
19
|
end
|
19
20
|
|
@@ -22,7 +23,6 @@ class RequestHandler
|
|
22
23
|
end
|
23
24
|
|
24
25
|
def render model, page, data
|
25
|
-
puts Dir.pwd
|
26
26
|
content_template = File.read "templates/#{ model }/#{ page }.mustache"
|
27
27
|
content = Mustache.render( content_template, { data:data })
|
28
28
|
|