Commit 9f9efc8b authored by João Victor Risso's avatar João Victor Risso

Remove class_code from SchoolClass views

Signed-off-by: João Victor Risso's avatarJoão Victor Tozatti Risso <jvtr12@c3sl.ufpr.br>
parent b3cd50e7
......@@ -4,7 +4,7 @@ class SchoolClassesController < ApplicationController
# GET /school_classes
# GET /school_classes.json
def index
@school_classes = SchoolClass.all
@school_classes = SchoolClass.all.limit(30)
end
# GET /school_classes/1
......
......@@ -15,10 +15,6 @@
<%= f.label :census_year %><br>
<%= f.number_field :census_year %>
</div>
<div class="field">
<%= f.label :class_code %><br>
<%= f.number_field :class_code %>
</div>
<div class="field">
<%= f.label :num_enrollments %><br>
<%= f.number_field :num_enrollments %>
......
......@@ -17,7 +17,6 @@
<% @school_classes.each do |school_class| %>
<tr>
<td><%= school_class.census_year %></td>
<td><%= school_class.class_code %></td>
<td><%= school_class.num_enrollments %></td>
<td><%= school_class.location_id %></td>
<td><%= link_to 'Show', school_class %></td>
......
......@@ -5,11 +5,6 @@
<%= @school_class.census_year %>
</p>
<p>
<strong>Class code:</strong>
<%= @school_class.class_code %>
</p>
<p>
<strong>Num enrollments:</strong>
<%= @school_class.num_enrollments %>
......
......@@ -5,6 +5,7 @@ Rails.application.routes.draw do
# You can have the root of your site routed with "root"
# root 'welcome#index'
root 'school_classes#index'
# Example of regular route:
# get 'products/:id' => 'catalog#view'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment