Blog
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 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 - 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...
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...
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 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 #...
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
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 ...
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.
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
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-
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.
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.
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...
Rails 3 Responders
So we have a problem here in Controllers. As our application grows our controllers grows.
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.
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 call in ruby1.9.3
Call a proc in different ways
Asset Pipeline with Rails 3.1
This is the new very interesting and useful feature in Rails 3.1.
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
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
Include Class Methods and Validation Using Module in RubyOnRails
{% codeblock lang:ruby%} class User include TestModule
Routes in Rails3
Rails3 define routes in more efficient way Routes for CRUD actions
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...
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...