Set up rbenv
$ cd
$ git clone https://github.com/rbenv/rbenv.git ~/.rbenv
$ echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc'
$ ~/.rbenv/bin/rbenv init
#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) |
rbenv
$ cd
$ git clone https://github.com/rbenv/rbenv.git ~/.rbenv
$ echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc'
$ ~/.rbenv/bin/rbenv init
" Keeping your lovely 'vimrc' INSIDE of your 'vim' directory is a good idea, | |
" if only because it makes it easier to move your config around. | |
" If you are using 7.4 exclusively, the following will be enough: | |
" | |
" on Unix-like systems ~/.vim/vimrc | |
" on Windows %userprofile%\vimfiles\vimrc | |
" If you use both 7.4 and an older version, or only an older version, | |
" the simplest, future-proof, solution is to put this line and only |