Monthly Archives: April 2011

Rails Tools

 cucumber- behavior driven development in rails BDD focuses on obtaining a clear understanding of desired software behavior through discussion with stakeholders. It extends TDD by writing test cases in a natural language that non-programmers can read. Behavior-driven developers use their … Continue reading

Posted in rails, ROR, ruby on rails | Tagged , , | Leave a comment

BitNami RubyStack

BitNami RubyStack greatly simplifies the development and deployment of Ruby on Rails applications. http://bitnami.org/stack/rubystack Klairvoyant Infosolutions likes Klairvoyant Create your Like Badge for klairvoyant

Posted in rails, ROR, ruby on rails | Tagged , | Leave a comment

Facebook development

Facebook Platform enables you to make your website more social.The JavaScript SDK enables you to access all of the features of the Graph API and Dialogs via JavaScript. It provides a rich set of client-side functionality for authentication and rendering … Continue reading

Posted in ruby on rails | Tagged , | Leave a comment

created_at and created_on

created_at created_at and updated_at are dates and times created_on created_on and updated_on are dates only Klairvoyant Infosolutions likes Klairvoyant Create your Like Badge for klairvoyant

Posted in rails, ROR, ruby on rails | Tagged , , | Leave a comment

submit option, with a interesting feature

The :submit option is an interesting one: it allows you to simulate a form submission. By providing the ID of a page element, any fields contained in it will be sent along with the request. That means that you don’t … Continue reading

Posted in rails, ROR, ruby on rails | Tagged , | Leave a comment

a common problem:dynamically shown via JavaScript, its CSS display

For an element to be dynamically shown via JavaScript, its CSS display: none property must be defined inline, as opposed to in an external stylesheet. For example, this won’t work: #indicator { display: none; } Hidden DIV $(“indicator”).show( ); // … Continue reading

Posted in rails, ROR, ruby on rails | Tagged , , | Leave a comment

passing variables to the partial

There is a bit of magic involved in passing variables to the partial. Because the partial is named “person,” the main template will look for an instance variable @person, and pass it to the partial as a local variable, person. … Continue reading

Posted in rails, ROR, ruby on rails | Tagged , , | Leave a comment

? mark in ruby

? mark it is a code style convention; it indicates that a method returns a Boolean value. Klairvoyant Infosolutions likes Klairvoyant Create your Like Badge for klairvoyant

Posted in rails, ROR, ruby on rails | Tagged , | Leave a comment

regular expressions in ruby

Ruby supports regular expressions as a language feature. In Ruby, a regular expression is written in the form of /pattern/modifiers where “pattern” is the regular expression itself, and “modifiers” are a series of characters indicating various options. The “modifiers” part … Continue reading

Posted in rails, ROR, ruby on rails | Tagged , | Leave a comment

Equality in Ruby

== The == comparison checks whether two values are equal eql? eql? checks if two values are equal and of the same type equal? equal? checks if two things are one and the same object. Klairvoyant Infosolutions likes Klairvoyant Create … Continue reading

Posted in rails, ROR, ruby on rails | Tagged , , , , | Leave a comment