Hi, I'm a newbie, and I have a basic question. Please help me out with this.
I'm trying to create a system for the student-course enrollment management. These are the steps I've followed so far 1) rails App 2) script/generate scaffold Student name:string email:string 3) script/generate scaffold Course name:string section:string 4) Edited the models/course.rb to has_many :studets, :through => :enrollments 5) Edited the models/course.rb to has_many :courses, :through => :enrollments 6) Created script/generate model Enrollment 7) Added to the models/enrollement.rb belongs_to :student belongs_to :course 8) script/server 9) Added students to students table from localhost:3000/students 10)Added courses to courses table from localhost:3000/courses Now, -I need to make enrollment have "enrolled_on" field. -Add functionality to enroll a student to a course and -Show the students enrolled in a particular course Please suggest me ways to do this. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.