Ruby on Rails Friday, March 7, 2014

Hi

1- Create 2 models: Student and Mark
2- Add relation between them.   belongs_to :student  in the Mark model and has_many :mark in the Student model
3- rake db:create && rake db:migrate
4- Create Controllers
5- Create Views
6- Create Routes

maybe the rails 'generate scaffold Mark Student' could help you

Le vendredi 7 mars 2014 07:46:27 UTC+1, Ruby-Forum.com User a écrit :
Hi Rails people, I've plan to develop own Rails app based on very simple
concepts like Student mark sheet, where we can do:
1. Add a new marks(m1,m2,m3) of a student,
2. Delete a existing marks of a student,
3. Edit any existing mark(s) of a student,
4. List of students mark in a view.

consider as newer to Rails,
give me steps/references to do that above,and it should query with
sqlite.

--
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 unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/abb0e794-18a5-4505-80e6-96a9bac0928d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment