Contents contributed and discussions participated by 張 旭
RolifyCommunity/rolify: Role management library with resource scoping - 0 views
-
authentication gem
-
authorization gem
-
Role and User classes are the default
- ...2 more annotations...
MySQL 到底能不能放到 Docker 里跑? - 0 views
-
忙碌又容易出错的工作其实是无意义的
-
单机多实例运行 MySQL
-
MySQL 运行的就是个进程而且对 IO 要求比较高
- ...12 more annotations...
How to Test Rails Models with RSpec - Semaphore - 0 views
-
Behaviour-driven Development (BDD) as a software development process is composed of multiple subtechniques.
-
Models can sometimes be full-blown objects with rich behaviour.
-
An alternative is to use the shoulda gem.
- ...3 more annotations...
drapergem/draper: Decorators/View-Models for Rails Applications - 0 views
-
The decorator wraps the model, and deals only with presentational concerns.
-
In the controller, you decorate the article before handing it off to the view
-
whenever you start needing logic in the view or start thinking about a helper method, you can implement a method on the decorator instead.
- ...5 more annotations...
Search and filter Rails models without bloating your controller - Justin Weiss - 0 views
-
Rails includes scopes, which can provide you with a lot of what you need for simple searching, filtering, and sorting.
-
scope chaining
-
filtering and searching of your models with one line in the controller and one line in the model.
- ...2 more annotations...
Rails API Testing Best Practices - 0 views
-
Writing an API is almost a given with modern web applications
-
A properly designed API should return two things: an HTTP response status-code and the response body.
-
Testing the status-code is necessary
- ...6 more annotations...
dry-rb - Home - 0 views
cryptography - What's the difference between SSL, TLS, and HTTPS? - Information Securit... - 0 views
-
TLS is the new name for SSL
-
HTTPS is HTTP-within-SSL/TLS
-
SSL (TLS) establishes a secured, bidirectional tunnel for arbitrary binary data between two hosts
- ...10 more annotations...
Four-Phase Test - 0 views
-
setup
-
exercise
-
verify
- ...5 more annotations...
How To: Manage users through a CRUD interface · plataformatec/devise Wiki - 0 views
-
Make sure to put your resources :users below the devise_for :users route.
-
the registration routes and user managing routes can conflict
-
remove the password key of the params hash if it’s blank
Form Helpers - Ruby on Rails Guides - 0 views
-
While the *_tag helpers can certainly be used for this task they are somewhat verbose as for each tag you would have to ensure the correct parameter name is used and set the default value of the input appropriately.
-
For these helpers the first argument is the name of an instance variable and the second is the name of a method (usually an attribute) to call on that object.
-
must pass the name of an instance variable, i.e. :person or "person", not an actual instance of your model object.
- ...2 more annotations...
library/mariadb - Docker Hub - 0 views
Use swarm mode routing mesh | Docker Documentation - 0 views
-
Docker Engine swarm mode makes it easy to publish ports for services to make them available to resources outside the swarm.
-
All nodes participate in an ingress routing mesh.
-
routing mesh enables each node in the swarm to accept connections on published ports for any service running in the swarm, even if there’s no task running on the node.
- ...6 more annotations...
Swarm mode key concepts | Docker Documentation - 0 views
-
The cluster management and orchestration features embedded in the Docker Engine are built using SwarmKit.
-
Docker engines participating in a cluster are running in swarm mode
-
A swarm is a cluster of Docker engines, or nodes, where you deploy services
- ...19 more annotations...
File: README - Documentation by YARD 0.8.7.6 - 0 views
-
we can express concepts like a conversation
-
-
The describe method creates an ExampleGroup.
- ...15 more annotations...
« First
‹ Previous
401 - 420 of 596
Next ›
Last »
Showing 20▼ items per page