Ruby in Rails

Ruby, Rails, Ruby on Rails Tutorials

  • Home
  • Rails
  • Ruby
  • About
GitHub icon LinkedIn icon
Subscribe
Rails

ActiveRecord Attributes – access using Strings, Symbols and Direct Access

Attributes can be accessed from ActiveRecord in various ways including symbolised, stringified or direct access. Each type of access has it’s own advantages and disadvantages as we will see in this tutorial.

Akshay Mohite Akshay Mohite 2 min read
Rails

Rails NameError uninitialized constant class solution

rails nameerror uninitialized constant class will occur if your rails console is not loaded with configuration of the class file containing method being called.

Akshay Mohite Akshay Mohite 3 min read
Rails

Ruby get file extension from string

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

Akshay Mohite Akshay Mohite 2 min read
Rails

Difference between && and and in Ruby

   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.

Akshay Mohite Akshay Mohite 1 min read
Rails

Ruby difference between collect and map

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.

Akshay Mohite Akshay Mohite 2 min read
Rails

RVM basic commands

rvm install, rvm uninstall, rvm use, rvm list, rvm upgrade, rvm get stable, rvm gemset like commands will be illustrated.

Akshay Mohite Akshay Mohite 4 min read
« Newer Posts Page 18 of 23 Older Posts »
Ruby in Rails © 2022
Latest Posts Github Twitter LinkedIn

Subscribe to Ruby in Rails

Stay up to date! Get all the latest posts delivered straight to your inbox