-
Notifications
You must be signed in to change notification settings - Fork 23
Usage Notes (IMPORTANT)
orenb edited this page Aug 24, 2011
·
6 revisions
rake db:setup_yml
rake ldap:setup
- To get mailer working, you must include an
smtp_settings.rb
file in theconfig
directory, which is of the following format:
@@smtp_username = "[email protected]"
@@smtp_pw = "yourpassword"
Note that additional configuration modification may be necessary in config/application.rb
and/or the config/environments/<environment>.rb
configuration files, i.e. if not using Gmail for SMTP.
- Have a way to refer to the root url of the site at all times, whether it be on localhost:3000 or on the production server. There may already be a way to do this in Rails or at least in our app, but for instance, in Job Mailer, we shouldn't be manually typing "localhost:3000" into here.
- In
config/initializers/
, don't forget to addsecret_token.rb
, which should contain:
# config/initializers/secret_token.rb
ResearchMatch::Application.config.secret_token = 'my long token that could be generated by rake secret'
- To refer to the root URL of the app (which will vary depending on the RAILS_ENV used), refer to the global constant
ROOT_URL
. It's defined inconfig/initializers/application_constants.rb
.