georgi-shinmun 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- data/example/map.rb +6 -2
- metadata +1 -1
data/example/map.rb
CHANGED
@@ -22,8 +22,12 @@ Kontrol.map do
|
|
22
22
|
|
23
23
|
post '/comments' do
|
24
24
|
post = find_by_path(params['path'])
|
25
|
-
|
26
|
-
|
25
|
+
if params['preview']
|
26
|
+
render '_comments.rhtml', :comments => [Shinmun::Comment.new(params)]
|
27
|
+
else
|
28
|
+
post_comment(post, params)
|
29
|
+
render '_comments.rhtml', :comments => comments_for(post)
|
30
|
+
end
|
27
31
|
end
|
28
32
|
|
29
33
|
get '/assets/javascripts\.js' do
|