SHIMADA Koji
null+****@clear*****
Thu Sep 27 16:00:11 JST 2012
SHIMADA Koji 2012-09-27 16:00:11 +0900 (Thu, 27 Sep 2012) New Revision: e7897824c23c34840ae5cb1637c9555e552fa914 https://github.com/logaling/logaling-server/commit/e7897824c23c34840ae5cb1637c9555e552fa914 Log: Fix param key Modified files: app/controllers/terms_controller.rb Modified: app/controllers/terms_controller.rb (+2 -2) =================================================================== --- app/controllers/terms_controller.rb 2012-09-27 15:47:12 +0900 (bfbe0fd) +++ app/controllers/terms_controller.rb 2012-09-27 16:00:11 +0900 (29f6b53) @@ -7,7 +7,7 @@ class TermsController < ApplicationController end def create - @term = GlossaryEntry.new(params[:term]) + @term = GlossaryEntry.new(params[:glossary_entry]) @user_glossary.add!(@term) redirect_to user_glossary_path(current_user, @user_glossary), notice: 'Term was successfully added.' @@ -21,7 +21,7 @@ class TermsController < ApplicationController def update @term = GlossaryEntry.load(params[:id], @user_glossary) - new_term = GlossaryEntry.new(params[:term]) + new_term = GlossaryEntry.new(params[:glossary_entry]) @user_glossary.update(@term, new_term) redirect_to user_glossary_path(current_user, @user_glossary), notice: 'Term was successfully updated.' -------------- next part -------------- An HTML attachment was scrubbed... Download