Sign in through GitHub

Paul Morganthall's Profile

GitHub User: slothbear

Site: http://morganthall.com/blog

Comments by Paul Morganthall

Avatar

You mention (@7:10) that if you're not using Heroku, you don't use environment variables.

Wouldn't the CONFIG hash solution work on Heroku also? If Heroku itself were looking for a setting in the environment variables, that would be a reason to use environment variables. In all of the screencast examples (auth & mail settings), we have control of both the definition and usage of the configuration method.

Avatar

Thanks for the hint -- exactly what I needed for my "legacy" app.

Avatar

A nice enhancement in version 0.3.2, you can turn your site title into a link. For instance to get out of admin mode and back to your regular site:

config.site_title_link = :root

Avatar

Put your custom css in a separate file and tell ActiveAdmin to load it: https://github.com/gregbell/active_admin/issues/261

Avatar

There's quite a bit of discussion of sass in the GitHub issues.

I'm not yet running 3.1, but I got around a similar sass problem in 3.0 by generating the assets locally, then putting this in an initializer:
Sass::Plugin.options[:never_update] = true

Avatar

Try this (note the quotes around the condition):
validates_presence_of :company_id, :if => "new_company_name.blank?"