robinboening / alchemy_crm

A CRM and Newsletter Module for Alchemy CMS
http://alchemy-cms.com
BSD 3-Clause "New" or "Revised" License
10 stars 9 forks source link

localized_country_select: rake-task not available, only ruby18, creating contacts fails #4

Closed masche842 closed 12 years ago

masche842 commented 12 years ago

With a freshly installed alchemy_cms and alchemy_crm, creating new contacts fails because i.e. de.countries is not available:

    Error: undefined method `map' for "translation missing: de.countries":String

The missing file can (theoretically) be written by rake import:country_select 'de', but is not available, neither in the main app nor in alchemy nor in alchemy_crm.

When trying to generate it in localized_country_select directly it fails with ruby19 (multibyte char...).

Possible solutions:

tvdeyen commented 12 years ago

That is an issue from the localized_country_select gem.

You have to use https://github.com/phonk64/localized_country_select to have the rake task.

That's why I put this gem into the Gemfile of Alchemy CRM.

Unfortunally Bundler does not install gems from a Gemfile of a gem, only from the gemspec. And in a gemspec one cannot set github as source.

So the Hotfix is to put the phonk64 fork gem version into your projects Gemfile and run bundle update.

A possible solution would be to fork the phonk64 fork and release a magic-localized_country_select gem on rubygems.org. Or we insist the gem owner to publish his fork.

tvdeyen commented 12 years ago

Ok, I updated the gemspec so it uses our fork of the localized_country_select gem.