Andrew Colclough

Web Design & Dev., Liberty, Economics, Football

Rails 3 and Restful Authentification Routing Error?

I was trying to set up a plugin for Rails (v.3) called Restful Authentication and I was getting the following routing error:

"Routing Error uninitialized constant ApplicationController::AuthenticatedSystem"

Luckily, found a tip here by user 'Croplio' that worked for me.

Try the following in your application_controller.rb file:

class ApplicationController < ActionController::Base
  require File.join(Rails.root, 'lib', 'authenticated_system.rb')
  include AuthenticatedSystem
end
Score.

Filed under  //   AutheticatedSystem   ERROR   Restful Authentification   coding   rails 3   routing   ruby   tip  

Don’t Use Black for Shadows | CSS-Tricks

That is, “don’t use black for shadows over colored backgrounds.” At every step of my design education I was taught this. For example, when adding a drop shadow as a layer style in Photoshop, don’t just pick a black or a gray but sample a color from the background, then dial it back in opacity until it looks good. This is because shadows in real life are not black. They are darkened versions of whatever they sit on top of, because there is less light. Check out this shadow. If you were trying to recreate that, I don’t think black at any opacity level would get it just right.

READ THE REST: css-tricks.com

Shadows are simply less light reflecting off of a color. Subtle but important thing you learn in art classes.

Filed under  //   art   black   colors   css   opacity   shadows   tip  

ERROR: could not find [gem] locally or in a repository

gem install --system

I ran into this issue the other day and the above code worked. You may or may not need to run "sudo gem update --system" of course if you get a permissions problem.

Also - if you need to get a little info about your installation and/or version of gems:

"gem env"

Filed under  //   --system   ERROR   gems   install   repository   ruby   tip  

Mac OSX Snow Leopard Tip - Launch Apps in 32-bit mode

Media_httpimagesanandtechcomreviewsmacmacbookpro2009roundup32bitsafarijpg_vuajiisrelcldbx

Apparently there are benefits. In Safari's case - bigger battery life.

ht: S. Sullivan

Filed under  //   32 bit mode   apps   mac   safari   snow leopard   tip