Recently I faced a problem while rebooting my ubuntu i.e UNEXPECTED-INCONSISTENCY;-RUN-fsck-MANUALLY shows on screen.This problem occurred when file system may currupted or trying to make dual boot hence mount point is affected.
Suppose you have two models having has_many/belongs_to associations between them, In previous versions of rails you cannot add dependent: :destroy to both of the relationships statements. Attempting to delete either of these records results in a circular dependency, with each record attempting to delete the other one, ending in a Stack Too Deep error.
Today I gona discuss about the ActiveRecord::Base#has_secure_password method, in rails 5 it became has_secure_token, it specifies that an attribute of your model should be used to store a unique 24-character alphanumeric token.
How ever in practice we have to store an object like Hash or Array into the database, like you want a hash to be store in the database and keys of the that hash used as like an attribute, For this kind of starage in the databse you can use ActiveRecord::Store .
How ever in practice we often have add custom error pages in rails application. Suppose we need to do some manipulation in the error pages like serve error pages in multiple languages, In this case we can use custom error pages.
One of the hottest technical trends of 2015, Ruby On Rails development is rapidly gaining popularity as an ideal solution for creating web applications. It is an open source web app framework, which is written using Rubyprogramming language.
Hello There, In genral web developemnt, We often need to run our web applications on https in place of http for making our applications more secure. Here is the example and step by step procedure to genrate a new ssl and configure it with nginx.