ruby on rails - String constant for use in en.yml file -


in locales/en.yml, have following:

en:   activerecord:     attributes:       ticket:         customer_name: "customer name"       inventory:         quantity: 'quantity'       resources:         quantity: 'quantity'       hours:         quantity: 'quantity' 

is there way me define string 'quantity' string constant can re-use constant in en.yml?

example:

default: &default   adapter: mysql2   encoding: utf8   username: username   password: yourdbpassword  development:   <<: *default  test:   <<: *default 

also see answer: reuse block of code in yaml


Comments

Popular posts from this blog

node.js - How to mock a third-party api calls in the backend -

node.js - Why do I get "SOCKS connection failed. Connection not allowed by ruleset" for some .onion sites? -

matlab - 0-by-1 sym - What do I need to change in order to get proper symbolic results? -