RailsCasts Pro episodes are now free!

Learn more or hide this

David James's Profile

GitHub User: bluemont

Comments by David James

Avatar

Charles is right! For more information, see the "Interaction States" section at http://docs.jquery.com/UI/Theming/API

If you want to read the jquery-ui code, you won't find the 'ui-state-*' classes in jquery.ui.autocomplete.js; you'll need to look in jquery.ui.menu.js.

Avatar

Ryan uses the rails executable in the episode. It is important to mention that depending on your setup, that probably will call your 3.2.X install of rails. While Rails is in beta and there is no prerelease gem, you need to use bin/rails:

$ rails -v
Rails 3.2.11

$ bin/rails -v
Rails 4.0.0.beta

This bit me when I found that rails s did not start the server.

Avatar

Right. See also http://ubuntuforums.org/showthread.php?t=1889595 So, if you are on Ubuntu 12.04 or later, it better to use the 'sudo' group.

Avatar

I've seen a lot of confusion about the various initialization files for shells. So I wanted to share the Startup Files page from zsh.sourceforget.net:

There are five startup files that zsh will read commands from:

$ZDOTDIR/.zshenv
$ZDOTDIR/.zprofile
$ZDOTDIR/.zshrc
$ZDOTDIR/.zlogin
$ZDOTDIR/.zlogout

If ZDOTDIR is not set, then the value of HOME is used; this is the usual case.

.zshenv is sourced on all invocations of the shell, unless the -f option is set. It should contain commands to set the command search path, plus other important environment variables. .zshenv should not contain commands that produce output or assume the shell is attached to a tty.

.zshrc is sourced in interactive shells. It should contain commands to set up aliases, functions, options, key bindings, etc.

.zlogin is sourced in login shells. It should contain commands that should be executed only in login shells.

.zlogout is sourced when login shells exit.

.zprofile is similar to .zlogin, except that it is sourced before .zshrc. .zprofile is meant as an alternative to .zlogin for ksh fans; the two are not intended to be used together, although this could certainly be done if desired.

.zlogin is not the place for alias definitions, options, environment variable settings, etc.; as a general rule, it should not change the shell environment at all. Rather, it should be used to set the terminal type and run a series of external commands (fortune, msgs, etc).