
Search In
Lets suppose that a file named product.csv exists into db folder in our applications. To import this file we will create file import.rake in my_app/lib/tasks/.
The import.rake file looks like...
require 'csv'
desc "Import product from csv file"
While writing the code, we often need to print a particular object and see the result. In rails we use puts and p for that.
Both will display the result but there is a difference between them.puts prints the result by applying to_s on an object where
Hello Readers,
In this blog i am going to explain "How to work with URL Rewrite management in Magento.
To accomplish this, follow the below steps:
1. Login to admin panel
2. Go to Catalog -> Rewrite Management
3. Click on Add URL Rew
Hi Reader's,
Welcome to FindNerd,today we are going to discuss to default checked the checkboxes in CakePHP 3
If we want to set checkbox in our cakephp application for showing list of a product in checkbox then firstly we have to find a list of p
Chaining is a technique that allows us to run multiple jQuery commands, one after the other, on the same element. Using chaining we can run multiple jquery methods within a single statement.
Chaining makes code short and easy to manage and it improve
contenteditable Attribute:
ContentEditable attribute provides the user to edit the content of html element. If the attribute is present and its value is true user can easily edit content of an html element and if value is false user cannot edit the
The placeholder attribute is a default text inside an input box. It usually appears in light gray color. It gives a short hint to the user describing the expected value in that input field. This hint appears in the field even
clone() Method:
Clone() method is used to make copy of selected html element including its child nodes, data and properties. It is useful when we need to duplicate html elements in a webpage.
Syntax:
$(selector).clone(true|false)
Example
What is Cropper jquery?
Cropper jquery plugin is lightweight, simple, easy, effortless cropping plugin that helps to crop images in runtime using Cropper jquery, it help to get a cropped image along with several tools that adds different effects to
Here, we discuss that how to double click on a button in Selenium WebDriver. In this, Actions Class helps to double click on any element or button.
Also, we need to import:
'import org.openqa.selenium.interactions.Actions'
