tldr/pages/common/rails.md

24 lines
584 B
Markdown
Raw Normal View History

2017-11-28 04:19:31 +00: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`
- Start local server for current project on a specified port (while in projects root directory):
2017-11-28 04:19:31 +00:00
`rails server -p "{{port_number}}"`
- Open console to interact with applicaiton from command line (while in projects root directory):
`rails console`