Use of a sortable column in a listing view. For example there is a list of “Programs”. Here our controller is named as “Programs” and the model is named as “Program”.
Here are the steps to Implement Sortable Columns in Rails through Helper. Add the following helper methods to the controller. In the view (index.html.slim) file add the helper method “sortable” in the columns you want to sort.
Memcached is a general-purpose distributed memory caching system. It is often used to speed up dynamic database-driven websites by caching data and objects in RAM to reduce the number of times an external data source (such as a database or API) must be read.
Redis is a flexible, open source and advanced key-value store. It is referred to as a “data structure server” where keys can contain strings, lists, hashes, sets and sorted sets of strings.
The main differences between them are listed below:
Comparing ease of Installation Redis is much easier. No dependencies required.
For simple key-value pairs memcached is more memory efficient than Redis. If you use Redis hashes, then Redis is more memory efficient.
CakePHP is an open source PHP based rapid development framework. It offers great run-time infrastructure along with abundant set of libraries for CakePHP developers.
CakePHP Development is supported by the MVC (Model View and ControllerCakePHP Developer) architecture which differentiates the programming logic from the presentation layer.
You should do minimum security checks before releasing the rails app to the public. The possible threats could be hijacking user accounts, manipulate access control, accessing sensitive data, doctoring with garbage contents. You should act proactively to protect your valuable information.
Here you go with some useful security tips which you cannot ignore. Courtsey,:Ruby on Rails Security Guide.
Don’t trust logged in users (Authentication != Authorization)
Always check whether the current logged in user is allowed to perform operation like create, update, delete and view.
Devise, a library which handles authentication, to verify that you can only get to the destroy action if you’re logged in. However, Devise does not handle authorization.
Apart from authentication authorization must be checked prior to allow any data sensitive operation.
The WebView class is a subclass of `android.view` class that facilitates to fetch external URL running in web server and display in device screen easily.
It is very useful to display dynamic contents from the web server application. External website URL should have UI contents compatible with the android device’s screen resolution.
Puma is a multi-threaded high performance web server written in Ruby. Currently it is very popular in market as a ruby application server.