Skip to content

{ problem: 'solved' }

Let's talk tech and solve problems ..

  • Home
  • About Me

gSearch

gCategories

  • databases
  • html/css
  • iPhone
  • javascript
  • linux
  • mac
  • my space
  • places
  • rails
  • ruby
  • subversion
  • technology
  • uncategorized
  • whats hot
  • windows

gQuotes

Writing code a computer can understand is SCIENCE. Writing code other programmers can understand is an ART.
@rithmetic is being @ble to calculate upto 20 without taking off your shoes.
Start with yourself before you go ahead and try to change the world.
Once you make up your mind, don't listen to anyone (including yourself).

gTweets

  • Casual! Amazing! twitter.com/vulture/status… 3 days ago
  • How OTT platforms, quite a few stand-up comics are making gaalis the norm .. has become the in-thing .. twitter.com/shahid_siddiqu… 1 week ago
  • @AboutIndia @captainarora @AjayKamalakaran No vaccine is 100% safe. Even if it was the vaccine, they won't report i… twitter.com/i/web/status/1… 1 week ago
  • Transfer Files - Wear OS - WiFi - ADB - #Ticwatch and other #smartwatches #wearos gauravsohoni.wordpress.com/2021/01/18/tra… 1 week ago
  • So #MagSafe is coming back and Useless #Touchbar is going away .. #apple #macbook updates .. Not sure if all this w… twitter.com/i/web/status/1… 1 week ago

gTagCloud

amd antivirus apache apple arrays backup capistrano 3 configuration console cors cron css csv database deployment enhancements explain features fedora find functioncall hashes homebrew Hot html indexing installation Intel iPhone irb javascript jquery js kernel leopard linux linuz localhost log mac merge methods migrations mysql name nature opensuse operating system os osx processors query rails rake reinstall ror ruby ruby on rails ruby rails secureboot select serene setup shorcuts sql subversion suse svn technology tips ubuntu update validations virus windows

gRecentPosts

  • Transfer Files – Wear OS (Ticwatch) – WiFi – ADB
  • Ender 3 Pro – Firmware upgrade using Raspberry Pi

gCalendar

January 2021
M T W T F S S
 123
45678910
11121314151617
18192021222324
25262728293031
« Aug    

validations

Rails update attributes without validations

While working on a functionality, I came across a situation where I was required to update the model which had a lot of validations specified. It is possible to update a single attribute and save the record without going through the normal validation procedure using update_attribute but when you need to do it for multiple […]

Read more "Rails update attributes without validations"

Ruby on Rails – Strange validation errors

Forms in rails let you show error messages when you create or update the records. In certain situations, I came across a weird issue where the error messages on the view were being shown in a strange format. I expected to see There were problems with the following fields: Name can’t be blank Instead it […]

Read more "Ruby on Rails – Strange validation errors"

Ruby on Rails 3.0 – Active Model and New Validations

Just came across the Ruby on Rails 3.0 Beta release. There are a lot of exciting new features and it all seems exciting. Something that caught my eye was Active Model and new validations. So here I am, jotting them down for myself and all those who might be interested in reading about it. New […]

Read more "Ruby on Rails 3.0 – Active Model and New Validations"
Create a free website or blog at WordPress.com.
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy