Module: SmsOnRails::PhoneNumbersHelper

Defined in:
app/helpers/sms_on_rails/phone_numbers_helper.rb

Instance Method Summary collapse

Instance Method Details

#phone_carriers_collection_select(form) ⇒ Object



2
3
4
# File 'app/helpers/sms_on_rails/phone_numbers_helper.rb', line 2

def phone_carriers_collection_select(form)
  form.collection_select('carrier_id',SmsOnRails::PhoneCarrier.find(:all), :id, :name)
end


6
7
8
# File 'app/helpers/sms_on_rails/phone_numbers_helper.rb', line 6

def phone_number_carrier_link(phone_number)
  link_to(phone_number.carrier.name, sms_phone_carrier_path(phone_number.carrier_id)) if phone_number.carrier
end