[logaling-commit] logaling/logaling-server [master] Use dashboard_path

Zurück zum Archiv-Index

SUZUKI Miho null+****@clear*****
Mon Sep 10 14:50:04 JST 2012


SUZUKI Miho	2012-09-10 14:50:04 +0900 (Mon, 10 Sep 2012)

  New Revision: a9fd14dcedad0257d92161572e52cb10a912f3b0
  https://github.com/logaling/logaling-server/commit/a9fd14dcedad0257d92161572e52cb10a912f3b0

  Merged c5d082c: Merge pull request #13 from logaling/enable-creating-user-glossary

  Log:
    Use dashboard_path

  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 14:47:01 +0900 (db491ba)
+++ app/controllers/user_glossaries_controller.rb    2012-09-10 14:50:04 +0900 (f3c735f)
@@ -48,7 +48,7 @@ class UserGlossariesController < ApplicationController
   def valid_user?
     if****@user***** != params[:user_id].to_i
       flash[:notice] = "不正なアクセスです"
-      redirect_to :controller => :dashboard, :action => :show
+      redirect_to dashboard_path
     end
   end
 end
-------------- next part --------------
An HTML attachment was scrubbed...
Download 



More information about the logaling-commit mailing list
Zurück zum Archiv-Index