Ref: https://gist.github.com/rnwolf/e09ae9ad6d3ac759767d129d52cab1f1
| Key Binding | Description |
|---|---|
| SPC | < space > |
| RET | < return > |
| C | < ctrl > |
| M | < alt >, M stands for Meta |
Ref: https://gist.github.com/rnwolf/e09ae9ad6d3ac759767d129d52cab1f1
| Key Binding | Description |
|---|---|
| SPC | < space > |
| RET | < return > |
| C | < ctrl > |
| M | < alt >, M stands for Meta |
| 1. Set Dead letter queue's dead letter queue to the main queue you want to send messages from | |
| 2. Set max receives to 1 | |
| 3. View messages/start polling for messages in dead letter queue | |
| 4. Verify messages have been sent to other queue and stop the redrive policy on the dead letter queue. |
| class ApiController < ApplicationController | |
| # define which model will act as token authenticatable | |
| acts_as_token_authentication_handler_for Login | |
| # Prevent CSRF attacks by raising an exception. | |
| # For APIs, you may want to use :null_session instead. | |
| protect_from_forgery with: :null_session | |
| respond_to :json | |
| skip_before_filter :verify_authenticity_token, if: :json_request? |
| HTTP status code symbols for Rails | |
| Thanks to Cody Fauser for this list of HTTP responce codes and their Ruby on Rails symbol mappings. | |
| Status Code Symbol | |
| 1xx Informational | |
| 100 :continue | |
| 101 :switching_protocols | |
| 102 :processing |
| =Navigating= | |
| visit('/projects') | |
| visit(post_comments_path(post)) | |
| =Clicking links and buttons= | |
| click_link('id-of-link') | |
| click_link('Link Text') | |
| click_button('Save') | |
| click('Link Text') # Click either a link or a button | |
| click('Button Value') |