Hi! When I need only one field from a row, I currently do this:
userid = User.where(email: "[email protected]").select(:id).first[:id] it works, but it this the best way of doing that? Many thanks Thiebo -- You received this message because you are subscribed to the Google Groups "sequel-talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/sequel-talk/5632da20-8810-4c8e-80b6-df2aeeeea8bbn%40googlegroups.com.
