Category Archives: Ruby On Rails Interview Questions

What are the operators available in Ruby? | Ruby On Rails Questions

Something that’s used in an expression to manipulate objects such as + (plus), – (minus), * (multiply), and / (divide). You can also use operators to do comparisons,such as with <, >, and &&.

Posted in Ruby On Rails Interview Questions | Leave a comment

How is class methods defined in Ruby? | Ruby On Rails Questions

def self.methodname ——– ——– end or def classname.methodname ——– ——– end

Posted in Ruby On Rails Interview Questions | Leave a comment

What is the difference between nil and false in ruby? | Ruby On Rails Questions

False is a boolean datatype, Nil is not a data type it have object_id 4.

Posted in Ruby On Rails Interview Questions | Leave a comment

What is the use of super in ruby rails? | Ruby On Rails Questions

Ruby uses the super keyword to call the superclass implementation of the current method

Posted in Ruby On Rails Interview Questions | Leave a comment

What is the log that has to seen to check for an error in ruby rails?

Rails will report errors from Apache in log/apache.log and errors from the Ruby code in log/development.log. If you’re having a problem, do have a look at what these logs are saying. On Unix and Mac OS X you may run … Continue reading

Posted in Ruby On Rails Interview Questions | Leave a comment

What is the Install rail package? | Ruby On Rails Questions

There are several packages that you can download and install. The prebuilt Rails installer called Install rail which currently is only for Windows.

Posted in Ruby On Rails Interview Questions | Leave a comment

Where does the start_tabnav gets informations for tabs rendering in ruby rail? | Ruby On Rails Questions

The main Symbol let the start_tabnav method know to look for a special MainTabnav class where all the magic happens

Posted in Ruby On Rails Interview Questions | Leave a comment

What is the use of global variable $ in Ruby? | Ruby On Rails Questions

A class variable starts with an @@ sign which is immediately followed by upper or lower case letter. You can also put some name characters after the letters which stand to be a pure optional. A class variable can be … Continue reading

Posted in Ruby On Rails Interview Questions | Leave a comment

What is the log that has to seen to check for an error in ruby rails? | Ruby On Rails Questions

Rails will report errors from Apache in log/apache.log and errors from the Ruby code in log/development.log. If you’re having a problem, do have a look at what these logs are saying. On Unix and Mac OS X you may run … Continue reading

Posted in Ruby On Rails Interview Questions | Leave a comment

How do the following methods differ: @my_string.strip and @my_string.strip! ? | Ruby On Rails Questions

The strip! method modifies the variable directly. Calling strip (without the !) returns a copy of the variable with the modifications, the original variable is not altered.

Posted in Ruby On Rails Interview Questions | Leave a comment