Blog

Asset Management in Rails: From Sprockets to Propshaft
· 8 min read

Asset Management in Rails: From Sprockets to Propshaft

Asset management in Rails has evolved significantly. This article examines the shift from Sprockets to Propshaft, the role of js-bundling and css-bundling, and when to choose each approach.

Rails Asset Pipeline Propshaft
· 2 min read

Rails 7.1 Active Record Transaction on return, break and throw

In the latest Rails, a significant change has been made to the behaviour of transactions. Specifically, using return, break, or throw statements will no longer trigger an automatic rollback of the transaction. In Rails 6.1 use of return, break, and t...

Rails 7.1 activerecord Rails
· 2 min read

Rails 7.1 - authenticated_by

Rails provides has_secure_password class method to store passwords securely. You need to have password_digest attribute in your model to get it working. For example, if you have a user model class User < ApplicationRecord has_secure_password end T...

Rails Rails 7.1 Ruby on Rails
Announcing Ruby Raven
· 2 min read

Announcing Ruby Raven

We are pleases to announce Ruby Raven which is an iOS app that will keep you updated about latest happening in Ruby Conferences world. Inside Ruby Raven App you can see all upcoming Ruby Conferences. People like notifications and Ruby Raven fullfills...

· 5 min read

New features in Rails 4.2

Rails 4.2 beta has been released and final version is going to come out soon. Listed are some feature are going introduced in...

rails 4 rails 4.2 beta rails changelog rails
· 3 min read

Rails Routing Constraints

Routing is backbone of a web applications. When we are building applications using Rails we can manage routing for our app easily. I am going to explain a bit advance feature of routing in Rails #...

routes rails ruby
· 2 min read

Splat operator as an argument in ruby

As we know we see `*args` as an argument in method definition it means we can pass multiple parameters. See the below example

ruby
· 1 min read

jQuery attr('value') and val()

Here is a short tip about using **$(obj).val()** and **$(obj).attr('value')**. I was fixing a bug in ajax request with some params then i found that there is a difference val() method ...

jquery val() attr('value')
· 4 min read

Rails 4 Directory Structure

{%img http://farm6.staticflickr.com/5443/9241313505_ac035bd643_m_d.jpg%} Rails 4 is released. Lots of new features has been added to rails.

rails4 rails
· 1 min read

The Basics of Caching and Cache Digests

Recently posted a blog about basics of caching and cache digests on Rubysource. If you are going to apply caching in your app this blog will help you. You can find blog on

RubyOnRails Rails4 cache
· 1 min read

Rails 4 Quick Look Strong Parameters

Strong Parameters is a new feature coming with Rails4. Its about Mass-assignment protection in controller instead of model. If you are keen to know more about it-

RubyOnRails Rails4
· 3 min read

Polymorphic Association with has_many :through

Hi Folks, In Rails we have Ploymorphic Association whenever we need to connect one model to more than one model.

activerecord association polymorphic
· 5 min read

Enhance Rails Models

In Rails Models play a important part in our Rails App.We should keep are model pretty,not having dirty code Here i am just reminding you some basic points to refactor a model.

activerecord association polymorphic
· 2 min read

Background Processing Using Rails Runner

Rails comes with a built-in tool for running tasks independent of the web cycle. The rails runner command simply loads the default Rails environment and then executes some specified...

RailsRunner Backgroundtask Ruby
· 2 min read

Rails 3 Responders

So we have a problem here in Controllers. As our application grows our controllers grows.

Rails3 RailsResponders
· 2 min read

OAuth with OmniAuth and Github

If you want to authenticate your user in your app with Github  use omniauth-github strategy for that. Here I am describing how you can do that very quickly.

Github OAuth OmniAuth
· 2 min read

Basic Difference between Proc and Lambda in Ruby

Proc => Proc  objects are blocks of code that have been bound to a set of local variables. Once bound, the co...

Proc Lambda Ruby
· 1 min read

Proc call in ruby1.9.3

Call a proc in different ways

Proc In Ruby Ruby
· 3 min read

Asset Pipeline with Rails 3.1

This is the new very interesting and useful feature in Rails 3.1.

Asset Pipeline Rails3
· 1 min read

jQuery Date/Time picker

To handle date and time both in calender use jQuery date time picker add-on you need to inlcude javascript files

date/time picker jQuery
· 1 min read

Twitter Client script to retrieves all the unique http links in the last recent tweets

# Code to fetch link from tweets matched by given hash_tag

Twitter Client Script
· 1 min read

Include Class Methods and Validation Using Module in RubyOnRails

{% codeblock lang:ruby%} class User include TestModule

Modules Rails
· 1 min read

Routes in Rails3

Rails3 define routes in more efficient way Routes for CRUD actions

Routes in Rails3 Routes Rails
· 1 min read

ActiveModel in Rails3

In Rails3 Active Model feature is added that helps to use feature of active record class for a non active record class.In Active Model you can make Any Ruby Object Feel Like Active Record and can g...

ActiveModel Rails
· 1 min read

Extended Version of Active Merchant Plugin

Extend the existing active merchant plug in for extracting transaction report via Date Range or Transactions id.Now u can fetch transactions by date range and between transaction i...

ActiveMerchant PaymentGatewayPlugin