SUZUKI Miho
null+****@clear*****
Mon Sep 24 11:09:00 JST 2012
SUZUKI Miho 2012-09-24 11:09:00 +0900 (Mon, 24 Sep 2012) New Revision: a413b3fe79f3c594d4631a1ea3458fa0ace2bfea https://github.com/logaling/logaling-server/commit/a413b3fe79f3c594d4631a1ea3458fa0ace2bfea Merged 971b851: Merge pull request #14 from logaling/prioritize-the-search Log: Set empty UserConfig when user does not have UserConfig Modified files: app/controllers/dashboard_controller.rb Modified: app/controllers/dashboard_controller.rb (+1 -1) =================================================================== --- app/controllers/dashboard_controller.rb 2012-09-24 10:35:36 +0900 (90c66e4) +++ app/controllers/dashboard_controller.rb 2012-09-24 11:09:00 +0900 (9fb3a23) @@ -2,7 +2,7 @@ class DashboardController < ApplicationController before_filter :authenticate! def show - @user_config = UserConfig.find_by_user_id(current_user.id) + @user_config = UserConfig.find_by_user_id(current_user.id) || UserConfig.new @user_glossaries = UserGlossary.find_all_by_user_id(current_user.id) end end -------------- next part -------------- An HTML attachment was scrubbed... Download