MolyJamCollective / MolySite

http://www.molyjam.com
1 stars 1 forks source link

Venue Country Code error after creating venue via form #38

Closed aproctor closed 11 years ago

aproctor commented 11 years ago

Looks like venues created from the form rather than from Seeds store their country value as a 2 letter code, whereas the seeds currently use the english name of the country.

The venue page renders fine, but the venue list throws an error as it tries to extract country_code using the following line: Carmen::Country.named(self.country).code

I propose we assume that venue.country is assumed to be the 2-letter code. And add instead a country_name method which calls: Carmen::Country.coded(self.country).name