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.
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.
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 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...
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...
Rails 4.2 beta has been released and final version is going to come out soon. Listed are some feature are going introduced in...
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 #...
As we know we see `*args` as an argument in method definition it means we can pass multiple parameters. See the below example
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 ...
{%img http://farm6.staticflickr.com/5443/9241313505_ac035bd643_m_d.jpg%} Rails 4 is released. Lots of new features has been added to rails.
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
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-
Hi Folks, In Rails we have Ploymorphic Association whenever we need to connect one model to more than one model.
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.
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...
So we have a problem here in Controllers. As our application grows our controllers grows.
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.
Proc => Proc objects are blocks of code that have been bound to a set of local variables. Once bound, the co...
Call a proc in different ways
This is the new very interesting and useful feature in Rails 3.1.
To handle date and time both in calender use jQuery date time picker add-on you need to inlcude javascript files
# Code to fetch link from tweets matched by given hash_tag
{% codeblock lang:ruby%} class User include TestModule
Rails3 define routes in more efficient way Routes for CRUD actions
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...
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...