Displaying 1 result from an estimated 1 matches for "id_artist".
Did you mean:
01_artist
2006 Feb 08
2
trouble inserting rows
...ntroller
scaffold :song
def addsave
# iterate over params hash
@params.each do |songs|
# iterate over song hash
songs.each do |song|
@a_song = Song.new (
:isactive => song[ :isactive ] ,
:id_artist => song[ :id_artist ] ,
:id_genre => song[ :id_genre ] ,
:id_record => song[ :id_record ] ,
:seq => song[ :seq ] ,
:title => song[ :title ] ,
:time_min => song[ :time_min ] ,...