I would recommend looking at the draft of "rapid rails 3 with hobo"
https://barquin.lighthouseapp.com/projects/63775-rapid-rails-3-with-hobo/tickets/24-beta-1-of-the-book

In this there is an example app created, through a series of
tutorials. in tutorial 8 there is a many to many relationship defined
between "recipes" and "categories" which allows categories to be added
from the form for a recipe. I would suggest trying to duplicate it
with "students" and "courses".

On Mar 30, 2:09 pm, Quiliro Ordóñez <[email protected]> wrote:
> OK. I have used your suggestions this way:
>
> hobo new curriculum --setup
> hobo generate resource student name:string cedula:integer
> hobo generate resource course name:string
> hobo generate migration
>
> Student has_and_belongs_to_many :courses
> Student children :courses
> Course has_and_belongs_to_many :students
>
> CoursesController  auto_actions :all, :except => :index
>
> I can see that the courses can be shown for each student but it is empty
> because I cannot add any courses to a student.
>
> --
> Quiliro Ordóñez
> 09 821 8696
> 02 340 1517

-- 
You received this message because you are subscribed to the Google Groups "Hobo 
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/hobousers?hl=en.

Reply via email to