diff --git a/app/controllers/quality_analysis_controller.rb b/app/controllers/quality_analysis_controller.rb index 21e094407..be3dee0dd 100644 --- a/app/controllers/quality_analysis_controller.rb +++ b/app/controllers/quality_analysis_controller.rb @@ -48,8 +48,8 @@ class QualityAnalysisController < ApplicationController def index data = open('http://123.59.135.93:8891/api/resources/index?resource=my:project985&depth=-1&metrics=complexity,class_complexity,lines,comment_lines,blocker_violations').read - cc=JSON.parse(data) - p cc + @cc =JSON.parse(data) + end # Find project of id params[:project_id] diff --git a/app/views/quality_analysis/index.html.erb b/app/views/quality_analysis/index.html.erb index e69de29bb..1f70644db 100644 --- a/app/views/quality_analysis/index.html.erb +++ b/app/views/quality_analysis/index.html.erb @@ -0,0 +1,3 @@ +<% @cc.each do |c| %> + <%= c %> +<% end %> \ No newline at end of file