Permalink
Browse files

Make a new page, instead of fourohfouring

  • Loading branch information...
1 parent 83b327b commit f7bce93363a5b93a4463f265f2a2af8116f9a436 @namelessjon committed Jul 1, 2010
Showing with 2 additions and 4 deletions.
  1. +2 −4 address.rb
View
6 address.rb
@@ -52,10 +52,8 @@ def clean_params(param_set=params)
mustache :edit
end
-get '/:page/edit' do
- @person = addresses.find_one(:page => params['page'])
- not_found unless @person
- p @person
+get '/:page/edit' do |page|
+ @person = addresses.find_one(:page => page) || {'page' => page}
mustache :edit
end

0 comments on commit f7bce93

Please sign in to comment.