SUZUKI Miho
null+****@clear*****
Thu Sep 6 20:14:15 JST 2012
SUZUKI Miho 2012-09-06 20:14:15 +0900 (Thu, 06 Sep 2012) New Revision: d0930c033d21ff17e067464a85f045ed243b5768 https://github.com/logaling/logaling-server/commit/d0930c033d21ff17e067464a85f045ed243b5768 Log: Add creating user glossary page Added files: app/controllers/user_glossary_controller.rb app/helpers/user_glossary_helper.rb app/views/user_glossary/new.html.haml Modified files: app/views/dashboard/show.html.haml config/routes.rb Added: app/controllers/user_glossary_controller.rb (+4 -0) 100644 =================================================================== --- /dev/null +++ app/controllers/user_glossary_controller.rb 2012-09-06 20:14:15 +0900 (ab2b621) @@ -0,0 +1,4 @@ +class UserGlossaryController < ApplicationController + def new + end +end Added: app/helpers/user_glossary_helper.rb (+2 -0) 100644 =================================================================== --- /dev/null +++ app/helpers/user_glossary_helper.rb 2012-09-06 20:14:15 +0900 (e090792) @@ -0,0 +1,2 @@ +module UserGlossaryHelper +end Modified: app/views/dashboard/show.html.haml (+2 -0) =================================================================== --- app/views/dashboard/show.html.haml 2012-09-06 18:07:13 +0900 (e69de29) +++ app/views/dashboard/show.html.haml 2012-09-06 20:14:15 +0900 (02d74d7) @@ -0,0 +1,2 @@ +.well + %p= link_to "Create personal glossary", new_user_glossary_path(:id => current_user) Added: app/views/user_glossary/new.html.haml (+2 -0) 100644 =================================================================== --- /dev/null +++ app/views/user_glossary/new.html.haml 2012-09-06 20:14:15 +0900 (d2aff9f) @@ -0,0 +1,2 @@ +%h1 UserGlossary#new +%p Find me in app/views/user_glossary/new.html.haml \ No newline at end of file Modified: config/routes.rb (+3 -0) =================================================================== --- config/routes.rb 2012-09-06 18:07:13 +0900 (8aaef36) +++ config/routes.rb 2012-09-06 20:14:15 +0900 (ddd0334) @@ -1,4 +1,6 @@ LogalingServer::Application.routes.draw do + get "user_glossary/new" + get "search", :as => :search, :controller => 'search', :action => :index get "top/index" @@ -16,6 +18,7 @@ LogalingServer::Application.routes.draw do match '/auth/failure', to: 'sessions#failure' match "/signout" => "sessions#destroy", :as => :signout match "/dashboard" => "dashboard#show", :as => :dashboard + match "/users/:id/glossaries/new" => "user_glossary#new", :as => :new_user_glossary root :to => 'top#index' end -------------- next part -------------- An HTML attachment was scrubbed... Download