rails generate scaffold ...
rails destroy scaffold ...
You can undo whatever you did with
rails generate xxx
rails destroy xxx
For example this applies generators to migration, scaffold, model…etc
The easiest way to install spf13-vim is to use our automatic installer by simply copying and pasting the following line into a terminal. This will install spf13-vim and backup your existing vim configuration.
If you are upgrading from a prior version (before 3.0) this is also the recommended installation.
curl http://j.mp/spf13-vim3 -L -o - | sh
$HOME/to/spf13-vim/ git pull vim +BundleInstall! +BundleClean +q
After installation try running
git --version within command prompt (press Win-R, type
cmd, press Enter) to make sure all good:
C:\> git --version git version 1.7.4.msysgit.0
Instructions blatently copied from vundle readme Installing Curl on Windows is easy as Curl is bundled with msysgit! But before it can be used with Vundle it’s required make
curl run in command prompt. The easiest way is to create
curl.cmd with this content
@rem Do not use "echo off" to not affect any child calls. @setlocal @rem Get the abolute path to the parent directory, which is assumed to be the @rem Git installation root. @for /F "delims=" %%I in ("%~dp0..") do @set git_install_root=%%~fI @set PATH=%git_install_root%\bin;%git_install_root%\mingw\bin;%PATH% @if not exist "%HOME%" @set HOME=%HOMEDRIVE%%HOMEPATH% @if not exist "%HOME%" @set HOME=%USERPROFILE% @curl.exe %*
And copy it to
C:\Program Files\Git\cmd\curl.cmd, assuming msysgit was installed to
to verify all good, run:
C:\> curl --version curl 7.21.1 (i686-pc-mingw32) libcurl/7.21.1 OpenSSL/0.9.8k zlib/1.2.3 Protocols: dict file ftp ftps http https imap imaps ldap ldaps pop3 pop3s rtsp smtp smtps telnet tftp Features: Largefile NTLM SSL SSPI libz
The easiest way is to download and run the spf13-vim-windows-install.cmd file.
The .vimrc file is suited to programming. It is extremely well organized and folds in sections. Each section is labeled and each option is commented.
It fixes many of the inconveniences of vanilla vim including
~/.gvimrc.local for any local customizations.
For example, to override the default color schemes:
echo colorscheme ir_black >> ~/.vimrc.local
For my personal use…