Permalink
Browse files

removing useless if

  • Loading branch information...
1 parent 2c69fad commit 131df5daae691c0cb21a515f0ea1e9b68f50acac @steveklabnik steveklabnik committed Mar 16, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 resources/blog_resource.rb
  2. +1 −1 views/index.html.haml
@@ -12,7 +12,7 @@ class BlogResource < Webmachine::Resource
def resource_exists?
return true unless request.path_info[:slug] #index
- @post = $posts[request.path_info[:slug]] if request.path_info[:slug]
+ @post = $posts[request.path_info[:slug]]
!@post.nil?
end
View
@@ -36,4 +36,4 @@
other people are building, and hear about new features as we build
them!
%p
- %a.btn{:href => "#"} Coming soon!
+ %a.btn{:href => "/blog"} Read the blog »

0 comments on commit 131df5d

Please sign in to comment.