[logaling-commit] logaling/logaling-server [enable-creating-user-glossary] Scaffold

Back to archive index

SUZUKI Miho null+****@clear*****
Tue Sep 18 11:12:45 JST 2012


SUZUKI Miho	2012-09-18 11:12:45 +0900 (Tue, 18 Sep 2012)

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

  Log:
    Scaffold

  Added files:
    app/controllers/terms_controller.rb
    app/views/terms/create.html.haml
    app/views/terms/destroy.html.haml
    app/views/terms/edit.html.haml
    app/views/terms/new.html.haml
    app/views/terms/update.html.haml
  Modified files:
    config/routes.rb

  Added: app/controllers/terms_controller.rb (+16 -0) 100644
===================================================================
--- /dev/null
+++ app/controllers/terms_controller.rb    2012-09-18 11:12:45 +0900 (c82a718)
@@ -0,0 +1,16 @@
+class TermsController < ApplicationController
+  def new
+  end
+
+  def create
+  end
+
+  def edit
+  end
+
+  def update
+  end
+
+  def destroy
+  end
+end

  Added: app/views/terms/create.html.haml (+2 -0) 100644
===================================================================
--- /dev/null
+++ app/views/terms/create.html.haml    2012-09-18 11:12:45 +0900 (c211b58)
@@ -0,0 +1,2 @@
+%h1 Terms#create
+%p Find me in app/views/terms/create.html.haml
\ No newline at end of file

  Added: app/views/terms/destroy.html.haml (+2 -0) 100644
===================================================================
--- /dev/null
+++ app/views/terms/destroy.html.haml    2012-09-18 11:12:45 +0900 (0dc6854)
@@ -0,0 +1,2 @@
+%h1 Terms#destroy
+%p Find me in app/views/terms/destroy.html.haml
\ No newline at end of file

  Added: app/views/terms/edit.html.haml (+2 -0) 100644
===================================================================
--- /dev/null
+++ app/views/terms/edit.html.haml    2012-09-18 11:12:45 +0900 (a06c814)
@@ -0,0 +1,2 @@
+%h1 Terms#edit
+%p Find me in app/views/terms/edit.html.haml
\ No newline at end of file

  Added: app/views/terms/new.html.haml (+2 -0) 100644
===================================================================
--- /dev/null
+++ app/views/terms/new.html.haml    2012-09-18 11:12:45 +0900 (c4a0945)
@@ -0,0 +1,2 @@
+%h1 Terms#new
+%p Find me in app/views/terms/new.html.haml
\ No newline at end of file

  Added: app/views/terms/update.html.haml (+2 -0) 100644
===================================================================
--- /dev/null
+++ app/views/terms/update.html.haml    2012-09-18 11:12:45 +0900 (960dcd1)
@@ -0,0 +1,2 @@
+%h1 Terms#update
+%p Find me in app/views/terms/update.html.haml
\ No newline at end of file

  Modified: config/routes.rb (+5 -1)
===================================================================
--- config/routes.rb    2012-09-13 19:17:31 +0900 (99c3f8f)
+++ config/routes.rb    2012-09-18 11:12:45 +0900 (0d4dd25)
@@ -16,7 +16,11 @@ LogalingServer::Application.routes.draw do
     resources :user_glossaries,
       :path => 'glossaries',
       :only => [:new, :create, :show],
-      :as => :glossaries
+      :as => :glossaries do
+      resources :terms,
+        :path => 'terms',
+        :as => :terms
+    end
   end
 
   match '/auth/:provider/callback', to: 'sessions#create'
-------------- next part --------------
An HTML attachment was scrubbed...
다운로드 



More information about the logaling-commit mailing list
Back to archive index