parent
fea21fe7cd
commit
d0791253d9
@ -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/
|
@ -0,0 +1,3 @@
|
|||||||
|
// Place all the styles related to the QualityAnalyses controller here.
|
||||||
|
// They will automatically be included in application.css.
|
||||||
|
// You can use Sass (SCSS) here: http://sass-lang.com/
|
@ -0,0 +1,15 @@
|
|||||||
|
class QualityAnalysesController < ApplicationController
|
||||||
|
before_filter :find_project_by_project_id#, :except => [:getattachtype]
|
||||||
|
layout "base_projects"
|
||||||
|
|
||||||
|
def index
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
|
# Find project of id params[:project_id]
|
||||||
|
def find_project_by_project_id
|
||||||
|
@project = Project.find(params[:project_id])
|
||||||
|
rescue ActiveRecord::RecordNotFound
|
||||||
|
render_404
|
||||||
|
end
|
||||||
|
end
|
@ -0,0 +1,2 @@
|
|||||||
|
module QualityAnalysesHelper
|
||||||
|
end
|
@ -0,0 +1,5 @@
|
|||||||
|
require 'rails_helper'
|
||||||
|
|
||||||
|
RSpec.describe QualityAnalysesController, :type => :controller do
|
||||||
|
|
||||||
|
end
|
Loading…
Reference in new issue