Refactor the post preview html to use the ViewComponent framework. This lets us encapsulate all the HTML, CSS, and helper methods for a UI component in a single place. See https://viewcomponent.org.
3 lines
53 B
Ruby
3 lines
53 B
Ruby
class ApplicationComponent < ViewComponent::Base
|
|
end
|