Skip to content

Commit

Permalink
merge mlc/master
Browse files Browse the repository at this point in the history
  • Loading branch information
pboling committed Oct 22, 2009
1 parent f31a115 commit d5a7437
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions lib/sms_fu_helper.rb
Expand Up @@ -2,7 +2,7 @@ module SMSFuHelper
# Returns a collection of carriers to be used in your own select tag
# e.g., <%= f.select :mobile_carrier, carrier_collection %>
def carrier_collection
SMSFu.carriers.sort.collect{ |carrier| [carrier[1]["name"], carrier[0]] }
SMSFu.carriers.sort.collect{ |carrier| [carrier[1]["name"], [carrier[1]["value"]] }
end

# Returns a formatted select box filled with carriers
Expand All @@ -14,7 +14,4 @@ def carrier_select(name = :mobile_carrier, phrase = "Select a Carrier", selected
select_tag name, options_for_select([phrase,nil]+carrier_collection, selected || phrase)
end

def carrier_select_default(name = :mobile_carrier, default = nil)
select_tag name, options_for_select([nil]+carrier_collection, default)
end
end
end

0 comments on commit d5a7437

Please sign in to comment.