diff --git a/app/controllers/mezuro_ranges.rb b/app/controllers/mezuro_ranges.rb deleted file mode 100644 index 165b183..0000000 --- a/app/controllers/mezuro_ranges.rb +++ /dev/null @@ -1,4 +0,0 @@ -include OwnershipAuthentication - -class MezuroRangesController < ApplicationController -end \ No newline at end of file diff --git a/app/controllers/mezuro_ranges_controller.rb b/app/controllers/mezuro_ranges_controller.rb index 468d891..22eeceb 100644 --- a/app/controllers/mezuro_ranges_controller.rb +++ b/app/controllers/mezuro_ranges_controller.rb @@ -6,6 +6,8 @@ class MezuroRangesController < ApplicationController @mezuro_range = MezuroRange.new @mezuro_range.metric_configuration_id = params[:metric_configuration_id].to_i @mezuro_range.mezuro_configuration_id = params[:mezuro_configuration_id].to_i + @reading_group_id = MetricConfiguration.find(@mezuro_range.metric_configuration_id).reading_group_id + @reading_group = ReadingGroup.find(@reading_group_id) end def show @@ -26,5 +28,4 @@ class MezuroRangesController < ApplicationController def edit end - end \ No newline at end of file diff --git a/app/views/mezuro_ranges/_form.html.erb b/app/views/mezuro_ranges/_form.html.erb index 30b427c..fc7b3f9 100644 --- a/app/views/mezuro_ranges/_form.html.erb +++ b/app/views/mezuro_ranges/_form.html.erb @@ -1,5 +1,5 @@ <%= render :partial => 'shared/form_errors', :locals => {:object => @mezuro_range} %> - +
| Label | +Grade | +Color | +
|---|