Re: [Rails] Re: problem with complex function to save in db

2010-09-23 Thread Almog Friedman
sorry but I'm kinda new with rails, i don't know how to get a log of the hash itself. how do I do that? On Thu, Sep 23, 2010 at 4:49 PM, Ar Chron wrote: > TEREN wrote: > > > > this is my function: > > def save_id(arguments, tables) > > arguments_id = arguments > > arguments.each_pair d

[Rails] Re: problem with complex function to save in db

2010-09-23 Thread Ar Chron
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").