Rails Helper complete guide
Hi, This is Shubham Mishra from India, this is the part of Ruby on Rails exploration journey. In this post we will discuss about the Rails Helper method and its usage in the rails view and also its access in the terminal or controller. Even though we can access rails helper methods in the controller, but it is highly recommended not to use it, since it violets the rails architecture guideline. We will look how we can use existing rails helper methods, create custom rails helper and how to use it and also will look how to make use of rails helper defined outside the scope of ApplicationHelper. We will also explore some of the helpers provided by the Rails. Love photo created by rawpixel.com - www.freepik.com If you are not aware of what is rails helper, Well in the ROR, in the view we may write some conditions or operations but it will make the view more complex and hence make the view dirty, and not only that sometimes we may have to write same...