it should still fix some issue As per your code, index is returning a collection. However your view tries to define a form for it. This is unlikely going to be succeed. Form is for an object, not for collections.
Any of those help I am trying to update the attributes of an existing client in postgresql. I want to search for a client name, then store that info in a cookie and redirect to the form. If I use , Try this:
client = Client.find(1)
client = Client.find_by(id: 1)
c = Client.where(id: 1).first
How to solve undefined method `to_key' error with simple_form
I wish this help you It looks like you need to custom your form url. You have to do this: route.rb
namespace :students do
root to: "dashboard#show"
get 'course-queries-details', to: 'dashboard#course_queries_details'
post 'save-course-queries-details', as: 'save_course_queries_details', to: 'dashboard#save_course_queries_details'