2017-11-27 23:19:31 -05:00
|
|
|
# rails
|
|
|
|
|
|
|
|
> Ruby on Rails, or Rails, is a server-side MVC framework written in Ruby under the MIT License.
|
|
|
|
|
|
|
|
- Check current version of rails:
|
|
|
|
|
|
|
|
`rails --version`
|
|
|
|
|
|
|
|
- Create a new rails project:
|
|
|
|
|
|
|
|
`rails new "{{name_of_project}}"`
|
|
|
|
|
|
|
|
- Start local server for current project on port 3000 (while in projects root directory):
|
|
|
|
|
|
|
|
`rails server`
|
|
|
|
|
2017-11-27 23:30:14 -05:00
|
|
|
- Start local server for current project on a specified port (while in projects root directory):
|
2017-11-27 23:19:31 -05:00
|
|
|
|
|
|
|
`rails server -p "{{port_number}}"`
|
|
|
|
|
|
|
|
- Open console to interact with applicaiton from command line (while in projects root directory):
|
|
|
|
|
2017-11-27 23:30:14 -05:00
|
|
|
`rails console`
|