Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Railsで新しく作成された行のIDをどのように取得できますか?
例えば、
Session.create(:user_id => user_id, :email => email )
Railsのドキュメントがもっとあればいいのに...まあ、将来のために
session = Session.create(:user_id => user_id, :email => email ) puts session.id