Validation is one of the core features which rails provides. There are plenty of inbuilt validation helpers are there which helps validation our form inputs or user attributes. But in few cases, if these inbuilt validation helper doesn’t serve our purpose, rails provide support for writing our own custom validations as well. There are many ways ...
How to manage multiple ruby versions on ubuntu
As compare to windows, where you can get one click installer, ubuntu follows different approach to install ruby. In case you are just planning to work on single version of ruby and not going back and forth with multiple rubies installed, you can simply use the system ruby installed on the ubuntu machines. Latest ubuntu release 16.10 comes with r...
VimLeaning: How to create vim colorscheme?
Vim is one of the popular choice as text editor for power users. One of the most important aspect to use a text editor is the look and feel. Vim is quite rich in terms of themes, either pre-bundled with vim distribution or added by community users. If you want to use an existing color scheme with vim, the simplest way is to:
12345Create `~/.vim/...
Spree Extend: Updating eligibility criteria for any existing promotion rule
As I mentioned in my last post spree-extend, how to create custom promotion rule(s) while working with Spree based e-Commerece website. Last weekend, I faced a situation where I need to update the existing promotion rule to handle some specific condition.
ScenarioFor example, when I select “Product(s)” spree default rule, it gives us the option ...
Spree Extend: Creating Custom Promotion Rule
I’m working on an E-commerce website for sometime now. We are usingi spree as backbone of the project and customizing where and when its required. Spree is quite good and fully functioning E-commerce Rails engine which give you base to build a e-commerce website quickly and with lesser efforts.
One of the main features of any e-commerce website ...
Generating Dashboard like layout for android with Titanium
From sometime, I was working on a Titanium project, where we apply so many tweaks and did so much of research work. One the requirement of the application to make an dashboard kind of layout for landing screen of the application. For iphone-titanium, The Dashboard View provides a view that supports the ability to have Springboard-like view of ic...
Titanium : Passing parameters between windows [How to make things global]
While working on any titanium application, one of the common possibilities is to use some variables/constants across the windows. In Titanium, windows use to have their on context. That means the variables/values available on one window are not available on the others linked windows by default. So, if we are required to pass parameters between w...
Assets & Database hosting on Amazon/S3
Lately I was working on a project, highly data driven. Its a movie social network, means there are lots of assets, Photos, Audios & videos. Thats why we should keep continuous backup for our data on some 3rd party provider or somewhere else, which is easier to manage. We are using Amazon::S3 module for our assets and database backup.
Databas...