# Setting form values in rails?

**URL:** <https://www.ruby-forum.com/t/setting-form-values-in-rails/85587>\
**Category:** Ruby\
**Created:** [February 14, 2007, 8:21pm UTC](https://www.ruby-forum.com/t/setting-form-values-in-rails/85587 "2007-02-14T20:21:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![red](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/59ef9b/32.png) [@red](https://www.ruby-forum.com/u/red)\
**Post date:** [February 14, 2007, 8:21pm UTC](https://www.ruby-forum.com/t/setting-form-values-in-rails/85587/1 "2007-02-14T20:21:24Z")

</div>

hi!

i’m trying to build some stuff with RoR again and now got a little  
problem and i hope someone can help me.

i’ve got the models securities, events ans allocations. there are  
many\_to\_many relations between securities,events and allocations with i  
made according to the rails recipes book (securities and events are  
connected through the allocations with contains some extra data). now i  
want to have a link in the events-listing that will redirect me to the  
allocations-new where i’ll just select the security and fill in the  
extra data. now i can’t fidure out how to pass the event\_id to the form  
and get error since the event\_id must be set.

also it would be cool if i could set several allocations for one event  
at the same time.

please help! - thanks

greetz  
bernd forstner / red667
