Where should a ruby constant live? -


 %div{:id=>[arsenal[@home.page_color]], :class=> "page"} 

i'm using following constant arsenal in home#page view. should constant live in order used view in ruby on rails?

right i'm met actionview::template::error (uninitialized constant actionview::compiledtemplates::arsenal):

you can define in own initializer file:

#config/initializers/setup_constants.rb arsenal = ["ccc", "ddd",...] 

Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -