Skip to content

Instantly share code, notes, and snippets.

@mhinton
Created April 21, 2011 19:15
Show Gist options
  • Save mhinton/935273 to your computer and use it in GitHub Desktop.
Save mhinton/935273 to your computer and use it in GitHub Desktop.
Rails Configuration Information
<%
config = Rails::Configuration.new
host = config.database_configuration[RAILS_ENV]["host"]
database = config.database_configuration[RAILS_ENV]["database"]
username = config.database_configuration[RAILS_ENV]["username"]
password = config.database_configuration[RAILS_ENV]["password"]
-%>
<div>
<%= host %><br/>
<%= database %>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment