what is “Yield” in Ruby on Rails?



what is “Yield” in Ruby on Rails?..

Answer / 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

More Ruby on Rails Interview Questions

What I have to do to view my project always on browser?

1 Answers  


Explain dry in rails?

1 Answers  


what is Ruby on Rails?

1 Answers  


what are the positive aspects of Rails?

1 Answers  


what is Polymorphic Association in Ruby on Rails?

1 Answers  


Do you know what is “yield” in ruby on rails?

1 Answers  


What are the differences betweeen Rails 2.x and Rails 3

4 Answers   Al Larin, Baidu, CTS,


what is the function of garbage collection in Ruby on Rails?

1 Answers  


What is active record in rails?

1 Answers  


Explain how you can run rails application without creating databases?

1 Answers  


what is the difference between Dynamic and Static Scaffolding?

1 Answers  


Explain how does rails implement ajax?

1 Answers  


Categories