TEREN wrote: > > this is my function: > def save_id(arguments, tables) > arguments_id = arguments > arguments.each_pair do |key, value| > pair = { :english => value} > tables["content"].new.save(pair) > content_id = tables["content"].find(:first, :order => "id > DESC").id > # @pair2 = {key => @text_id} > arguments_id[key] = content_id > end > tables["table"].new.save(arguments_id) > end > > the arguments are the parameters i get from the form > the tables variable holds the models i use and looks like this: > TABLES = {"table" => Faction, "content" => FactionContent} >
Well... can you show us what an actual POST looks like from your log? It would help to see the contents of the actual params hash. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.