brokenfingers/Fabric_Manager

View on GitHub
app/controllers/records_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
class RecordsController < ApplicationController
  before_filter :authenticate_user!

  def index
    @fabrics = Fabric.all
  end

  def display
    @records = Fabric.where("id=?", params[:id]).first.records
    respond_to do |format|
      format.js { render 'transactions.js.erb'}
      format.html { render :show }
    end
  end
end