Skip to content

Instantly share code, notes, and snippets.

@nesquena

nesquena/app.rb Secret

Created May 23, 2011 10:11
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 nesquena/1d36a35794dbbd664ea4 to your computer and use it in GitHub Desktop.
Save nesquena/1d36a35794dbbd664ea4 to your computer and use it in GitHub Desktop.
Example of how to register rendering module explicitly
# app/app.rb
class Demo < Padrino::Application
register Padrino::Rendering # <= Add this line
# ...
register Padrino::Helper
end
# config/apps.rb
Padrino.configure_apps do
enable :sessions
# $ padrino rake gen
# $ rake secret
set :session_secret, "long secret key pasted here"
end
@botanicus
Copy link

Or alternatively you can use different rendering modules, such as template inheritance rendering: http://blog.101ideas.cz/posts/padrino-and-template-inheritance.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment