Generate project with RMV.
$ mkdir myapp # create the project folder
$ cd myapp
$ rvm use ruby-2.1.1@myapp --ruby-version --create # create a new project-specific gemset
# option “—ruby-version” creates .ruby-version and .ruby-gemset files in the root directory
$ gem install rails --pre # installs the most recent release of Rails
$ rails new . # generate application in the current directory.
Click here is you want to create an app without database and test-unit
If you have no RVM in your system, follow command below.
$ \curl -L https://get.rvm.io | bash -s stable --ruby # install rvm and ruby
$ rvm get stable --autolibs=enable # if you have rvm already, update it
$ rvm install ruby # install Ruby
$ rvm --default use ruby-2.1.1 # use and set it as default
$ gem update --system # update gem
0 comments:
Post a Comment