There are few issue in this:
1. You should not be doing sql queries directly from views, instead set the
instance variable in controller and pass it to view.
2. Your form is submitting to /course/show, instead it should be
/course/list
3. Controller name should be plural, you have got the name as C
Hi, im new to rails and I got a mind boggling issue.
I have a select form populated with Institutes names e.g University of
Yale. These records are obtained from the Institute ActiveRecord.The
institutes table has a many to many relationships with the course table.
My application should work such
2 matches
Mail list logo