Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 

Search In

dependent: :destroy in rails models

Let's consider this example.We have two tables events and tags in our database having a many-to-many relationship between them.So We create a third table taggings behaving as a junction table .So taggings table has a many-to-one relationship agai

Interactor in Rails

Ruby on Rails Interactor Before interactor we use to write complex business logic in some class in the ActiveRecord /models directory and that class can have too many responsibilities so while testing we could stuck between tediously slow test-suit

How to change the Product Price at the time of adding it to cart in Magento?

In Magento sometimes we are required to apply our own custom price on the products while adding to the cart.  To do so we can work upon the event checkout_cart_product_add_after.   Lets see how we can do it: 1. Create a module with names

How to change any attribute value of product in magneto

In magento sometimes we are required to chnage the attribute values of the products.  To do so we can work upon the event catalog_product_load_after. Lets see how we can do it: 1. Create a module with namespace as Custom and module as ProductI

Clicking on links or buttons using Capybara

Capybara provides some methods to navigate the application through links or buttons:   Click_link_or_button Click_link Click_on   Capybara do not uses the fixed strategy to locate elements. It uses its own “best guess” pat

Difference between render And redirect_to

render and redirect_to works in the similar way in your web browser , as they both takes you to a new page but the only difference between them is : When you call render it creates a complete response which is sent to your browser.  If we do

What is method to read data from CSV file

Hi Reader's,   Welcome to FindNerd, today we are going to discuss What is method to read data from CSV file ? If you want to read your data from "CSV" file in php then you should use fgetcsv() function, which is used to read data

How to check which shopping cart rules are applied to product?

In magento if we need to check, if any shopping cart rule is applied to the product or not. To do so we can perform it in a test file in our root folder. lets perform the same, create a file test.php in root folder and write the below code:  

Few Problem Solving Tips

Project Management is a plethora of various activities, one of such activities is the problem solving skills and find means to resolve it. Here are few useful tips how you can resolve problems. Presence Of Mind : This is one of the important thi

MDM (Master data Management) vs PIM (Product Information Management)

Hello   Today we would be discussing about a very important aspect of MDM and PIM. This blog post point out variations between the two.   Various analysts reckon PIM as a fragment of MDM. For instance, MDM is defined as the management o

1 181 363
Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: