Search
⌘K
    to navigateEnterto select Escto close

    More Rails content and goodies

    The lib folder and its use cases

    The only cases where we should use the lib folder are in these cases:

    • Overriding 3rd party library specifics or modules.

    • Overriding String class from Ruby.

    • For keeping logic shared by controllers, models as well as say configs or even Rake tasks.

    • The lib folder was used a lot in old Rails where all helpers were used to be written in this folder.

    Why prefer carriers over view helpers

    You can refer to this BigBinary blog to learn about carriers and why carriers are preferred over view helpers.

    ActionText

    You can read more about ActionText from the official documentation.

    ActionCable

    You can read more about ActionCable from the official documentation.

    There is nothing to commit in this chapter.

    Previous
    Next