Basic Ruby on Rails Tutorial

Ruby on Rails Logo [Source]
Rails is a web application framework running on the Ruby programming language.
The Rails philosophy includes several guiding principles:

  1. DRY – “Don’t Repeat Yourself” – suggests that writing the same code over and over again is a bad thing.
  2. Convention Over Configuration – means that Rails makes assumptions about what you want to do and how you’re going to do it, rather than requiring you to specify every little thing through endless configuration files.
  3. REST is the best pattern for web applications – organizing your application around resources and standard HTTP verbs is the fastest way to go.

Find Multiple Strings in Selected SQL Column


Problem:
Sometime you need to search one or more words, not coming in sequence from a column. Look the following example.
This is the Customer’s table.
Name
Address
Phone
Email
Pinter Bible
Lighthouse Promotions
PO Box 215
SPRINGVALE  VIC  8006
+1097897879123
Steve James
Avenida João Jorge, 112, ap. 31
Vila Industrial
Campinas - SP
13035-680
+9189898891828
Steve Brown
Av. Bellavista N° 185
Dep. 609
8420507
Recoleta
Santiago
+1989898089080

Requirement is to find all customers using “gmail” and having name as “steve”. The result would be as follow:
Name
Address
Phone
Email
Steve James
Avenida João Jorge, 112, ap. 31
Vila Industrial
Campinas - SP
13035-680
+9189898891828

How to Add Automatic Read More Hack For Blogger With Summary and Thumbnail


Automatic Read More hack for blogger is quite easy to use and show summary and thumbnail  for image. This gives a neat and summarized look to the blog template and very helpful in case reader is not interested to read the whole post or just going through your blog.

Recent blogger functionality enables the "Read More" through "Jump Break" and "Read More" link, but it shows all content before the jump break. For summary of the post, the blogger functionality is good but not for image thumbnail. It displays the image in its original size.

The solution of the problem is quite easy and highly used, follow the tutorial below:

Customize Older, Newer And Home Blogger Links with an Image or Text

Newer, Older and Home Page links appear on the blogger's layout in a very weird way. These texts are easily customize-able.

customize older, newer, home blogger links
Customize Older, Newer, Home Links