In this video you'll learn how to use helper methods in Ruby on Rails!
Exactly what is a helper method?
Helpers are view methods (the V in MVC) & they are used to extract logic from views.
Examples:
time_ago_in_words
number_to_currency
form_for
These make your developer life easier while using Rails because they save you work!
Btw...
Did you know that you can create your own helper methods?
In this video you'll learn how.
Basically it involves writing a regular Ruby method under the "helpers" folder inside your Rails app.
You can keep learning by watching more of my videos in this YouTube channel, subscribing to this channel if you haven't yet & visting my website:
https://www.rubyguides.com/
Thanks for watching!
Jesus Castello