Files
danbooru/app/helpers
evazion 9363658652 post versions: fix exception when added_tags contains nulls.
Fix exception when viewing old post versions that contain null values in the
added_tags field: https://danbooru.donmai.us/post_versions?search[id]=1319677

There are 82 post versions with nulls in the added_tags fields and 26
with nulls in the removed_tags field.
2022-09-23 20:12:59 -05:00
..
2022-04-18 16:50:26 +02:00
2021-12-14 21:33:27 -06:00
2021-12-14 21:33:27 -06:00

Helpers

This directory contains helper functions used by views. Helpers are used for simple common functions, such as linking to users or formatting timestamps.

Helper functions are globals. If you see an unnamespaced function in a view, and it's not a Rails function, then it's probably a helper defined here.

All helper functions defined in this directory are globally available to all views. They're not limited to single views. For example, the functions in posts_helper.rb are available to all views, not just to app/views/posts.

The use of helper functions should be minimized. Partials or components are preferred for more complex widgets, or for things used in only one or two places. Helper functions should be limited to very simple things used in nearly all views.

See also

External links