Class: GraphStarter::ModelsController

Inherits:
ApplicationController show all
Defined in:
app/controllers/graph_starter/models_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



3
4
5
# File 'app/controllers/graph_starter/models_controller.rb', line 3

def index
  @models = Model.all
end

#showObject



7
8
9
# File 'app/controllers/graph_starter/models_controller.rb', line 7

def show
  @model = Model.find_by(name: params[:name])
end