SUZUKI Miho
null+****@clear*****
Tue Sep 25 21:08:18 JST 2012
SUZUKI Miho 2012-09-10 14:47:01 +0900 (Mon, 10 Sep 2012) New Revision: af754e241931e611cd873fe84eaa70517c79347a https://github.com/logaling/logaling-server/commit/af754e241931e611cd873fe84eaa70517c79347a Merged c5d082c: Merge pull request #13 from logaling/enable-creating-user-glossary Log: Change parameter string to integer Modified files: app/controllers/user_glossaries_controller.rb Modified: app/controllers/user_glossaries_controller.rb (+1 -1) =================================================================== --- app/controllers/user_glossaries_controller.rb 2012-09-10 11:36:47 +0900 (4f6bc6b) +++ app/controllers/user_glossaries_controller.rb 2012-09-10 14:47:01 +0900 (db491ba) @@ -46,7 +46,7 @@ class UserGlossariesController < ApplicationController end def valid_user? - if****@user***** != params[:user_id] + if****@user***** != params[:user_id].to_i flash[:notice] = "不正なアクセスです" redirect_to :controller => :dashboard, :action => :show end -------------- next part -------------- An HTML attachment was scrubbed... Download