====== rbenv ======
rbenv is a Ruby version/environment management tool.
| [[/GitHub|GitHub]] | https://github.com/rbenv/rbenv |
| Wiki | https://github.com/rbenv/rbenv/wiki |
| Port | https://www.freshports.org/devel/rbenv/ |
===== Install Ruby on Rails in a Ruby environment =====
==== Prerequisites ====
* Git (''%%git%%'' or ''%%git-lite%%'')
* ''%%sudo%%''
sudo pkg inst gcc node ruby sqlite3
==== Setup rbenv and ruby-build ====
- https://github.com/rbenv/rbenv#basic-github-checkout
- https://github.com/rbenv/ruby-build#installation
==== Install a Ruby version ====
Example
rbenv install 2.4.4
You may set this version as the default global version
rbenv global 2.4.4
==== Ruby on Rails ====
Ruby on Rails (%%RoR%%) is a solid framework written in Ruby to build great web application or site.
| Website | https://rubyonrails.org/ |
Installation
gem install rails
Create a new project
rails new project
----
{{tag>HowTo}}