adspace


what is “Yield” in Ruby on Rails?

Answer Posted / Prem Narayan Singh

In Rails, `yield` is a keyword used to pass control back to the block that was called. It allows for dynamic code generation and is commonly used within controller actions, routes files, and view helpers.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the current version of ruby on rails?

948