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
Post a Comment