I apologize, but it must be to weariness, I do not see the error: (
the driver:
class MaximosController < ApplicationController
before_action :set_maximo, only: [:show, :edit, :update, :destroy]
# GET /maximos
# GET /maximos.json
def index
ver_datos
@maximos = Maximo.all
end
....
UPDATE MODEL (same error)
the model:
class Maximo < ApplicationRecord
end
Private
def ver_datos
puts 'dentro de ver datos'
end
the error:
Started GET "/" for 127.0.0.1 at 2017-11-02 12:45:43 -0400
Processing by MaximosController#index as HTML
Completed 500 Internal Server Error in 250ms
NameError (undefined local variable or method 'ver_datos' for #<MaximosController:0x5525328>):
app/controllers/maximos_controller.rb:7:in 'index'
Started GET "/" for 127.0.0.1 at 2017-11-02 12:46:22 -0400
Processing by MaximosController#index as HTML
Rendering maximos/index.html.erb within layouts/application
Maximo Load (1.0ms) SELECT "maximos".* FROM "maximos"
Rendered maximos/index.html.erb within layouts/application (9.0ms)
Completed 200 OK in 6686ms (Views: 6636.2ms | ActiveRecord: 3.0ms)
Started GET "/" for 127.0.0.1 at 2017-11-02 12:47:03 -0400
Processing by MaximosController#index as HTML
Completed 500 Internal Server Error in 265ms
NameError (undefined local variable or method 'ver_datos' for #<MaximosController:0x667fd58>):
app/controllers/maximos_controller.rb:7:in 'index'