Where to store site specific information like site name, admin email, etc?
问题 When creating say a cms application where website specific details will vary depending on the website, where should I be storing this information? Things like: site name, support email, smtp settings, etc.? 回答1: Assuming you mean configuration data for the application, here's what I do: I create a config/app_config.yml file with my config information, like this: site_name: This awesome site support_email: me@mysite.com Then, at the top of config/application.rb (right below the first 'require'