rails nameerror uninitialized constant class will occur if your rails console is not loaded with configuration of the class file containing method being called.»
Sometimes developer requires to extract only file extension from the string object.
File class can be used to perform this operation.
We will see how to use
File class to get the extension name.
Difference between && and and in ruby is mainly the Precedence of these operators. ‘and’ and ‘&&’ both have different precedence. This tutorial will help understanding with the help of examples.»
This is common question for Ruby on Rails developer(Beginner). Map and Collect both are looping methods used on Array, Hash etc. This tutorial will help understanding the exact difference between these two methods.»
rvm install, rvm uninstall, rvm use, rvm list, rvm upgrade, rvm get stable, rvm gemset like commands will be illustrated.»
can’t find the ‘libpq-fe.h header *\* extconf.rb failed **, you may find this when you get error installing pg gem in your ruby environment.»
These methods are used on Arrays, Hashes or Objects. This tutorial will illustrate difference between count length and size.»
Rails RecordNotFound exception occurs when there is error while fetching records from database. RecordNotFound is one of the Exception Handling class provided by Rails.»
While using SVN command line, you may need to see status codes of modified/changes files. In this tutorial we will learn SVN command to check modified files.»
Database.yml is one of the most important files in rails project, database.yml rails is actualy a configuration file.»
Lazy loading in rails is the amazing feature provided with rails. In console you might have tried to examine how lazy loading in rails actually works. In this tutorial, we will learn about this Rails - Lazy loading feature with examples.»
In this tutorial, we will learn basic svn commands like svn commit, svn checkout, svn copy, svn merge, svn status, svn delete, svn merge, svn log etc that are extremely useful. And how these commands are used with proper example.»
In Ruby on Rails Programming you might have to check if key exists in hash and based on that you might have to perform other operation. There is a simple way to detect if key exists in particular hash.»
rake db migrate - This can be used to migrate your production/test database using various options like up, down, step, redo, version etc. In this tutorial we will learn how all these options can be used with rake tool to migrate the database.»
In “Ruby difference between single and double quotes” is very common question that you might come across while using single quotes and double quotes in Ruby on Rails development. We will see in this tutorial what is exact difference between these two ways.»