
Search In
A unanimous definition of a scope in rails can be termed as a succinct way of creating database queries. We define a scope in a Model class in the purview of MVC architecture.
It's syntax goes like: scope(name, body, &block) .
To give
Ruby Constructors
1. Ruby supports constructors.
2. They are declared with the method initialize.
3. Initialize method is called automatically when the object is created.
Example:
class Cons
def initialize(name,email,pa
Storage classes are used to check the visibility and scope of the variables. There are 5 types of storage classes.
auto storage class->
the auto storage class is a default storage class and it is for all local variables. Its sc
1. In admin panel click on Catalog->Manage Products.
2. Click on Add Product button.
3. Select Attribute Set and Product Type.(Default & Simple Product)
4. In General tab fill the mendatory details like Name, Description, Short Description,
Hello Readers,
In this tutorial, I am going to show you how to create an attribute" and apply it to Magento products.
1. Go to Catalog -> Attributes -> Manage Attributes
2. click on “Add New Attribute button in the top right”
Hello readers, today I have taken example of Floyds triangle. Floyd's triangle is a right-angled triangle of array having natural numbers. The natural numbers are printed in such a manner , that it will look like right angle tri
Apple has provided a powerful api to play audio from text and here are the steps to achieve:
1- Import AVFoundation framework
2- Initialise AVSpeechSynthesizer(as below)
let synthesizer = AVSpeechSynthesizer()
3- Cre
This blog includes the use of -
AVSpeechSynthesisVoice
If we want to change the default voice i.e system voice then we need to use speechVoices{} array which contains the name of persons and locations. iOS has a nice method for setting the v
Hello Reader's If you are dealing with JQuery in your website and want to get the height and width of any html element then this blog will very helpful to you.
So lets get started working of getting the height and width of a div .
First yo
Hello Reader's, If you want to make folder zip functionality through website then PHP give you to do this. PHP uses ZipArchive() to create the zip files from the destination path provided. So lets get started working creating a zip folder.
