# Form for another controller in a view

**URL:** <https://www.ruby-forum.com/t/form-for-another-controller-in-a-view/111708>\
**Category:** Rails\
**Created:** [August 10, 2007, 12:24am UTC](https://www.ruby-forum.com/t/form-for-another-controller-in-a-view/111708 "2007-08-10T00:24:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![yeago](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/eada6e/32.png) [@yeago](https://www.ruby-forum.com/u/yeago)\
**Post date:** [August 10, 2007, 12:24am UTC](https://www.ruby-forum.com/t/form-for-another-controller-in-a-view/111708/1 "2007-08-10T00:24:39Z")

</div>

Let’s say I have table ‘groups’ and table ‘members’.

When SHOWing a particular group I included the form for members (Add  
new).

What approach should I use for making sure that members add to the group  
being shown?

I could create a hidden tag (group\_id), but I want to know how others do  
it in Rails.
