# How to enter and update difeerent tables data from views?

**URL:** <https://www.ruby-forum.com/t/how-to-enter-and-update-difeerent-tables-data-from-views/155738>\
**Category:** Rails\
**Created:** [December 16, 2008, 8:10am UTC](https://www.ruby-forum.com/t/how-to-enter-and-update-difeerent-tables-data-from-views/155738 "2008-12-16T08:10:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![srikanth](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/f9ae1b/32.png) [@srikanth](https://www.ruby-forum.com/u/srikanth)\
**Post date:** [December 16, 2008, 8:10am UTC](https://www.ruby-forum.com/t/how-to-enter-and-update-difeerent-tables-data-from-views/155738/1 "2008-12-16T08:10:59Z")

</div>

hi ,

i have two tables called streams and tags.  
using tags table i am assigning tags to the stream table entries using  
acts\_as\_taggable plugin.  
Now problem is if i try to enter the data for tag table in  
new.html.erb file from views/streams getting error like

Couldn’t find Stream without an ID problem

i have tried to enter data in new.html.erb file like:

**Tags**  
  
\<%= f.text\_area(‘tags\_as\_text’) %\>

instead if i use below code in views:

**Tags**  
 \<%= text\_field\_tag 'tag\_list', @stream.tags.collect { |tag| tag.name.include?(" ") ? '"' +"#{tag.name}" + '"' : tag.name }.join(" ")%\>

i am able to enter data but it is not reflecting in tag table and not  
showing if i do the show option provided .

how to solve this problem?

thanks for any help or suggestions?

regards  
Srikanth
