I am working on a project and I setup a has_many through relationship
but am having a hard time figuring out how to display and edit it on a
form.

What I have is a Training Table, an Organization Table, and a join table
called Attendees

In Attendees I have the training_id, organization_id, and attendee_count

Each training will have many Organization attendees

All I can seem to find in Simple Form is for selects with radio or
checkboxes, but I need to actually have an integer value which is the
attendee count per organization.

So the form should show All Organization names with the count from the
Attendee Table

Needless to say I am new to Rails and am struggling with the syntax.

John Sanderbeck

Attachments:
http://www.ruby-forum.com/attachment/11294/001_create_trainings.rb
http://www.ruby-forum.com/attachment/11295/002_create_organizations.rb
http://www.ruby-forum.com/attachment/11296/003_create_attendees.rb
http://www.ruby-forum.com/attachment/11297/attendee.rb
http://www.ruby-forum.com/attachment/11298/organization.rb
http://www.ruby-forum.com/attachment/11299/training.rb


-- 
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+unsubscr...@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/514907ea2ddbb268460235122fcae9b8%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to