Permalink
Browse files

fix a bug in append

  • Loading branch information...
1 parent 3f9b7b4 commit 87d48592766c222cebb79a73052643da1ed1bb4f @dstywho committed Dec 9, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/controllers/pairs_controller.rb
View
2 app/controllers/pairs_controller.rb
@@ -8,7 +8,7 @@ def grow_a
def append
params[:pair] ||= {}
params[:pair][:key] ||= params[:key]
- params[:pair][:value] ||= params[:key]
+ params[:pair][:value] ||= params[:value]
create
end

0 comments on commit 87d4859

Please sign in to comment.