I\'m writing an android application that depends on netw开发者_C百科ork activity and the alarm manager sometimes waking the phone up from a sleeping state.
You can do this when you use form_for(@model...): collection_select(:subscription, :duration, [\"Some\", \"Values\"], :to_s, :to_s, {:prompt => true})