Displaying 1 result from an estimated 1 matches for "addsave".
Did you mean:
a_save
2006 Feb 08
2
trouble inserting rows
...t;
size="2" maxlength="2">
</input>
...then iterate over the hashes in order to write 1 row to mysql for
each "inner" hash (i.e., each song, in this case 2 songs)...
class SongController < ApplicationController
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 ] ,...