Looking up options for Rails helpers | Julia Chan
18-Aug-2023 921
“Rails Magic” is one of the terms I have heard a lot. Rails indeed is a magical framework as it does a lot under the hood. Yet, it can feel “too magical” for a new Rails dev.Often I looked at a Rails helper and was confused because I didn’t know how to use it, especially when the method signature has (options) as one of the parameters. I know there are options, but what are the options?Here I summarised three approaches I use now to learn about the optional parameters a Rails helper method accepts. This is one of the many pieces of puzzle in my dev journey that seem obvious once I became aware of them, yet I didn’t know until someone somewhere sheds the light for me.
Looking up options for Rails helpers | Julia Chan #ruby #rubydeveloper #rubyonrails #Looking #options #Rails #helpers #Julia https://rubyonrails.ba/link/looking-up-options-for-rails-helpers-julia-chan