(C-x means ctrl+x, M-x means alt+x)
The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:
| #Model | |
| @user.should have(1).error_on(:username) # Checks whether there is an error in username | |
| @user.errors[:username].should include("can't be blank") # check for the error message | |
| #Rendering | |
| response.should render_template(:index) | |
| #Redirecting | |
| response.should redirect_to(movies_path) |
#Behold, the nav_link:
The nav_link helper works just like the standard Rails link_to helper, but adds a 'selected' class to your link (or its wrapper) if certain criteria are met. By default, if the link's destination url is the same url as the url of the current page, a default class of 'selected' is added to the link.
For full usage details, see: http://viget.com/extend/rails-selected-nav-link-helper
Drop nav_link_helper.rb into app/helpers in your Rails 3.x app and enjoy.
| ./configure \ | |
| --prefix=/usr \ | |
| --mandir=/usr/share/man \ | |
| --infodir=/usr/share/info \ | |
| --sysconfdir=/private/etc \ | |
| --with-apxs2=/usr/sbin/apxs \ | |
| --enable-cli \ | |
| --with-config-file-path=/etc \ | |
| --with-libxml-dir=/usr \ | |
| --with-openssl=/usr \ |