--- /dev/null
+# 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/
--- /dev/null
+// Place all the styles related to the Logs controller here.
+// They will automatically be included in application.css.
+// You can use Sass (SCSS) here: http://sass-lang.com/
def index
@objects ||= model_class.all
+ respond_to do |f|
+ f.json { render json: @objects }
+ end
end
def show
if !@object
render_not_found("object not found")
end
+ respond_to do |f|
+ f.json { render json: @object }
+ end
end
protected
--- /dev/null
+class LogsController < ApplicationController
+end
--- /dev/null
+module LogsHelper
+end
--- /dev/null
+class Log < OrvosBase
+end
Vcffarm::Application.routes.draw do
+ resources :logs
+
+
resources :factory_jobs
--- /dev/null
+# 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
--- /dev/null
+require 'test_helper'
+
+class LogsControllerTest < ActionController::TestCase
+ # test "the truth" do
+ # assert true
+ # end
+end
--- /dev/null
+require 'test_helper'
+
+class LogsHelperTest < ActionView::TestCase
+end
--- /dev/null
+require 'test_helper'
+
+class LogTest < ActiveSupport::TestCase
+ # test "the truth" do
+ # assert true
+ # end
+end