stub Project
authorTom Clegg <tom@clinicalfuture.com>
Wed, 16 Jan 2013 22:01:15 +0000 (14:01 -0800)
committerTom Clegg <tom@clinicalfuture.com>
Wed, 16 Jan 2013 22:01:15 +0000 (14:01 -0800)
app/assets/javascripts/projects.js.coffee [new file with mode: 0644]
app/assets/stylesheets/projects.css.scss [new file with mode: 0644]
app/controllers/projects_controller.rb [new file with mode: 0644]
app/helpers/projects_helper.rb [new file with mode: 0644]
app/models/orvos_base.rb
app/models/project.rb [new file with mode: 0644]
config/routes.rb
test/fixtures/projects.yml [new file with mode: 0644]
test/functional/projects_controller_test.rb [new file with mode: 0644]
test/unit/helpers/projects_helper_test.rb [new file with mode: 0644]
test/unit/project_test.rb [new file with mode: 0644]

diff --git a/app/assets/javascripts/projects.js.coffee b/app/assets/javascripts/projects.js.coffee
new file mode 100644 (file)
index 0000000..7615679
--- /dev/null
@@ -0,0 +1,3 @@
+# Place all the behaviors and hooks related to the matching controller here.
+# All this logic will automatically be available in application.js.
+# You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/
diff --git a/app/assets/stylesheets/projects.css.scss b/app/assets/stylesheets/projects.css.scss
new file mode 100644 (file)
index 0000000..7b9c6ec
--- /dev/null
@@ -0,0 +1,3 @@
+// Place all the styles related to the Projects controller here.
+// They will automatically be included in application.css.
+// You can use Sass (SCSS) here: http://sass-lang.com/
diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb
new file mode 100644 (file)
index 0000000..60b4a9e
--- /dev/null
@@ -0,0 +1,2 @@
+class ProjectsController < ApplicationController
+end
diff --git a/app/helpers/projects_helper.rb b/app/helpers/projects_helper.rb
new file mode 100644 (file)
index 0000000..db5c5ce
--- /dev/null
@@ -0,0 +1,2 @@
+module ProjectsHelper
+end
index d54750cd55dd302995618f2448f0da1779fa3119..cd01d1f122c1387a67da9f5f84d379064b9d06e3 100644 (file)
@@ -55,6 +55,10 @@ class OrvosBase < ActiveRecord::Base
     super
   end
 
+  def kind_uuid
+    self.kind + '#' + self.uuid
+  end
+
   protected
   def self.api(action, data=nil, o={})
     dataargs = []
diff --git a/app/models/project.rb b/app/models/project.rb
new file mode 100644 (file)
index 0000000..1ee3b14
--- /dev/null
@@ -0,0 +1,2 @@
+class Project < OrvosBase
+end
index 1163ce0c7dcc212d93d8cabe23f7fb81161e30f6..92a58bdca3e21f06ec22e9b76da750bfce094981 100644 (file)
@@ -1,4 +1,7 @@
 Vcffarm::Application.routes.draw do
+  resources :projects
+
+
   resources :specimens
 
 
diff --git a/test/fixtures/projects.yml b/test/fixtures/projects.yml
new file mode 100644 (file)
index 0000000..c63aac0
--- /dev/null
@@ -0,0 +1,11 @@
+# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/Fixtures.html
+
+# This model initially had no columns defined.  If you add columns to the
+# model remove the '{}' from the fixture names and add the columns immediately
+# below each fixture, per the syntax in the comments below
+#
+one: {}
+# column: value
+#
+two: {}
+#  column: value
diff --git a/test/functional/projects_controller_test.rb b/test/functional/projects_controller_test.rb
new file mode 100644 (file)
index 0000000..c098166
--- /dev/null
@@ -0,0 +1,7 @@
+require 'test_helper'
+
+class ProjectsControllerTest < ActionController::TestCase
+  # test "the truth" do
+  #   assert true
+  # end
+end
diff --git a/test/unit/helpers/projects_helper_test.rb b/test/unit/helpers/projects_helper_test.rb
new file mode 100644 (file)
index 0000000..a591e4e
--- /dev/null
@@ -0,0 +1,4 @@
+require 'test_helper'
+
+class ProjectsHelperTest < ActionView::TestCase
+end
diff --git a/test/unit/project_test.rb b/test/unit/project_test.rb
new file mode 100644 (file)
index 0000000..0821e1f
--- /dev/null
@@ -0,0 +1,7 @@
+require 'test_helper'
+
+class ProjectTest < ActiveSupport::TestCase
+  # test "the truth" do
+  #   assert true
+  # end
+end