Skip to content

Instantly share code, notes, and snippets.

@paulcsmith
Created September 27, 2017 14:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save paulcsmith/3282626b39c0ba626db3e135bc1a66a2 to your computer and use it in GitHub Desktop.
Save paulcsmith/3282626b39c0ba626db3e135bc1a66a2 to your computer and use it in GitHub Desktop.
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