Created
March 14, 2024 23:19
sample-02_bun_tw_phlex_htmx articles_controller.rb
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ArticlesController < ApplicationController | |
layout -> { ApplicationLayout } | |
def index | |
render Articles::IndexView.new | |
end | |
def create | |
render ArticleComponent.new, layout: false | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment