Re: [Rails] How to navigate between view using select

2011-08-18 Thread Chirag Singhal
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

[Rails] How to navigate between view using select

2011-08-18 Thread kevin ng'eno
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