jeudi 6 octobre 2016

how to create a model corresponding a view in rails

I created a view "Employee_Details" in mysql, which is combination of 7 tables like "user", "user_details", "location", "offer_letters", "employee_details", "client" etc. It showing all details of a user. I am accessing all values with the help of hr_controller.rb with sqlconnection.rb file. sqlconnection.rb file create in model folder and it's contain all sql connection. But I want to create a model for Employee_Details. Can i access all information of Employee_Details view, with the help of new model After that I will export all information into excel file

Aucun commentaire:

Enregistrer un commentaire