How do I get ActiveRecord to show the next id (last + 1) in Ruby on Rails?
Asked 2010-05-03T00:38:35.233
57
Is there a compact way with ActiveRecord to query for what id it's going to use next if an object was going to be persisted to the database? In SQL, a query like this would look something like: