Hi Neil,

I don't use I18n. Anyway, I now get the same error with initialization on
percompile set to true, so I'm not really sure what's going on anymore.

Thanks for your response :)
Hagit

On Mon, Dec 17, 2012 at 1:01 PM, Neil Middleton <[email protected]>wrote:

> So you have anything in your assets that's dependant on the I18n
> translations?  If so, then you need that initialisation occurring, however,
> this is a bad idea generally speaking (putting non-static stuff in your
> assets that is).
>
> Whilst this isn't a Heroku specific problem (you'll get the same issue
> compiling assets locally in production mode), you can allow initialisation
> on precompile - it's just things will take a little longer.
>
> --
> Neil
>
> On Monday, 17 December 2012 at 10:54, hagits wrote:
>
> Hello,
>
> I'm trying to upload my ruby on rails app to heroku. My app contains date
> and time active_scaffold columns.
>
> when trying to deploy (*git push heroku master*) I get this precompile
> error:
> *translation missing: en.time.formats.picker*
>
> Setting *config.assets.initialize_on_precompile = true *solves this
> problem but cases another, and indeed I visited Heroku 
> troubleshooting<https://devcenter.heroku.com/articles/rails3x-asset-pipeline-cedar#the-asset-pipeline>
>  and
> it says to turn off assets initialization on precomplie
> (config.assets.initialize_on_precompile = false)
>
> This seems like a terrible catch! What should I do?
>
> Any help will be appreciated (BTW does Heroku have a support or bug report
> contact email? Couldn't find any...)
>
> my config/production.rb:
>
> *config.assets.initialize_on_precompile = false
> **config.assets.compile = true*
> ...
>
>
> my config/locales/en.yml:
>
> *en:
> **  time:
> **    formats:
> **      picker: "%a, %d %b %Y %H:%M:%S"
> **      default: "%d-%b-%Y %I:%M %p"
> **  date:
> **    formats:
> **      default: "%d-%b-%Y"*
>
>
> Thanks!
>
> --
> You received this message because you are subscribed to the Google
> Groups "Heroku" group.
>
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/heroku?hl=en_US?hl=en
>
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Heroku" group.
>
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/heroku?hl=en_US?hl=en
>

-- 
You received this message because you are subscribed to the Google
Groups "Heroku" group.

To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/heroku?hl=en_US?hl=en

Reply via email to