Good morning!
I need render data from a model inside of a page “.html.erb”, i have this tree in my project:
app/models/dte.rb (this is the model with the table from i want the data)
app/controllers/dtes_controller.rb (this is the controller of the model)
app/views/dtes/index.html.erb (this is the html where is the datatable with the data)
app/views/pages/somepage.html.erb (this is the html where i need to put the datatable)
for your help, thank you
best regards