-
-
Save paulcsmith/3282626b39c0ba626db3e135bc1a66a2 to your computer and use it in GitHub Desktop.
This file contains 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 Users::Index | |
# Does a few things, but the most important to this example is that it does this | |
# def call : LuckyWeb::Response | |
# {{ yield }} | |
# end | |
action do | |
oops_i_forgot_to_call_render | |
# Will result in a compile time error like: return type must be a LuckyWeb::Response | |
# I'd love to let the user know at compile time that they probably are missing a `render` or `redirect` call | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment