mercredi 1 janvier 2020

how to create realtion between two model and render to other controller view in rails

i have i project_site model that contains name email and project details. i have generated another model project_remark model that contains boolean attribute value. i have a controller name manager_dashboard_controller.rb. i can i link my boolean attribute value to each project_site and print them in list with accept and reject submit button with project_site on the manager dashboard. what changes i need to do in my code . i have already created association between project_site(has_many :project_remarks) and project_remark(belongs_to :project_site) model.

  resources :project_sites do
    resources :project_remarks
  end

Aucun commentaire:

Enregistrer un commentaire