How are blocks created?
Answer / Gagandeep
Blocks in Ruby are defined by enclosing a piece of code between `do...end` or within an indented line that follows the method definition. When a method is called with such block, it can be captured using the `&block_variable` syntax.
| Is This Answer Correct ? | 0 Yes | 0 No |
How do rails implement ajax?
How to find second max element from database ?
What is a ruby singleton method ?
What is the difference between delete and destroy ?
what is Rails Active Record in Ruby on Rails?
Explain me what is the purpose of rjs in rails?
What is unit testing (in classical terms)? What is the primary technique when writing a test ?
Whats the difference between symbol and string?
Write a program to show the functionality of request.xhr in ruby on rails ?
what is active record?
What is the role of mvc architecture in ruby on rails?
How many filters are there in rails.