Hello, I think i have a stupid problem but...it''s a problem i''ve a session param like session[:idLayer] when i try to save this value on my database, i always have "1" value recorded. my controller is : blocElem = BlocElement.new blocElem.bloc_id = session[:idBloc] blocElem.page_id = <b>session[:idLayer]</b> blocElem.element_id = elem.id blocElem.position = newPosition blocElem.save my session param value is "2" and the record save is "1". i''ve trying to replace my session param by a static value and it''s ok : blocElem = BlocElement.new blocElem.bloc_id = session[:idBloc] blocElem.page_id = <b>2</b> blocElem.element_id = elem.id blocElem.position = newPosition blocElem.save i don''t understand what is the problem. help !! -- 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-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---