- In Ruby, everything is an object.
- In methods of Ruby, return is automatically apply.
- Ruby prefer to code in the same line.
- How to use comment in Ruby. https://www.digitalocean.com/community/tutorials/how-to-use-comments-in-ruby
- Rails API Testing Best Practices https://matthewlehner.net/rails-api-testing-guidelines
- Auto Comeplete Code https://www.jetbrains.com/help/ruby/auto-completing-code.html
- Rubymine Tips http://www.railsonmaui.com/tips/rubymine/rubymine-tips-rails-tutorial.html
- Check code style with the RuboCop https://rubocop.readthedocs.io/en/stable/ https://www.jetbrains.com/help/ruby/rubocop.html
- Using bundler to get related package from gem https://www.jetbrains.com/help/ruby/using-the-bundler.html
- Those great functions of Rubymine (In Chinese) https://medium.com/@et3216/rubymine-%E5%B8%B6%E6%88%91%E5%90%91%E4%B8%8A%E9%A3%9B-8478c30af49c
- Plugin: Railways http://plugins.jetbrains.com/plugin/7110-railways
- Show related resource: ⌃⌘↑
- Go to define: ⌘↓
- Auto formating: ⌥⌘L
- Refactoring: ⌃T
- Recommand action: ⌥Enter
- Search everything Shift(double tap)
Ref. https://qiita.com/jnchito/items/297173e671a069772804 https://qiita.com/jnchito/items/6eda2cd54038ffa829ef
Ref. http://railsapps.github.io/installrubyonrails-mac.html
As title.
$ brew install gpg
For installing RVM with default Ruby and Rails in one command, run: \curl -sSL https://get.rvm.io | bash -s stable --rails
$ rvm list known $ rvm install ruby-2.x.x
$ rvm list $ rvm use 2.x.x
Gem is a package manager for ruby, is popular, will supported by community.
$ gem -v $ gem update --system $ gem update
$ gem install bundler $ gem install nokogiri
$ gem install rails
https://whatpixel.com/best-ruby-books/
Ruby Modules are similar to classes in that they hold a collection of methods, constants, and other module and class definitions. Modules are defined much like classes are, but the module keyword is used in place of the class keyword. Unlike classes, you cannot create objects based on modules nor can you subclass them; instead, you specify that you want the functionality of a particular module to be added to the functionality of a class, or of a specific object. Modules stand alone; there is no "module hierarchy" of inheritance. Modules is a good place to collect all your constants in a central location.
Ref.http://rubylearning.com/satishtalim/modules_mixins.html