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...
Understanding Polymorphic Associations in Rails - 0 views
-
STI provides you with more flexibility than polymorphic association but we have to create separate classes to implement the associations.
-
need has_many :through with polymorphic association
-
inverse_of: does not work with polymorphic associations.
- ...3 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...
SSH with Go - 0 views
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...
Better Specs { rspec guidelines with ruby } - 0 views
-
# when referring to an instance method's name
-
. (or ::) when referring to a class method's name
-
Be clear about what method you are describing.
- ...9 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...
plataformatec/devise: Flexible authentication solution for Rails with Warden. - 0 views
-
we advise you to start a simple authentication system from scratch
-
If you are building your first Rails application, we recommend you do not use Devise. Devise requires a good understanding of the Rails Framework
-
The generator will install an initializer which describes ALL of Devise's configuration options
- ...6 more annotations...
library/mariadb - Docker Hub - 0 views
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...
« First
‹ Previous
541 - 560 of 1422
Next ›
Last »
Showing 20▼ items per page