Skip to content
Janko Marohnić edited this page Dec 16, 2024 · 2 revisions

Rodauth uses Roda's render plugin for rendering the default view & email templates, which in turn depends on the Tilt gem. In Rails applications, you're expected to have custom view & email templates that will be rendered by Action View, but Roda rendering is still turned on by default to support rendering built-in templates.

If you've set up every view & email template to be rendered by Rails, you can pass the render: false option to Rodauth to skip loading Roda's render plugin and Tilt:

class RodauthApp < Rodauth::Rails::App
  configure RodauthMain, render: false
  configure RodauthAdmin, :admin, render: false
end

Or if you're using Rodauth as a library:

RodauthMain = Rodauth::Rails.lib(render: false) do
  # ...
end

Now you should be able to remove the tilt gem from your Gemfile.

Clone this wiki locally