Erwin
2013-Mar-06 14:44 UTC
Rails 3.2 - how to write an image path in a config/initializer script ?
In my config/initializers/payday.rb , I need to write an image path to an asset image ... Currently it''s written like that : Payday::Config.default.invoice_logo = "#{Rails.root}/public/images/store/logo.png" how can I set the path, as asset_path cannot be used yet during initialization ? if not possible I guess I should have a copy of the image in the public folder ? thanks for feedback -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/YM4vmn5bIvoJ. For more options, visit https://groups.google.com/groups/opt_out.