Skip to content

Instantly share code, notes, and snippets.

@roy
Created January 28, 2011 09:44
Show Gist options
  • Save roy/800047 to your computer and use it in GitHub Desktop.
Save roy/800047 to your computer and use it in GitHub Desktop.
# Gemfile
config.gem "liquid"
# routes.rb
get "/handlers/:action", :to => "handlers"
# view/handlers/liquid.html.liquid
testing 1..2..3
# lib/handlers.rb
require 'extras/liquid_view'
ActionView::Template::register_template_handler :liquid, LiquidView
# when i go to localhost:3000/handlers/liquid i get the following error
# undefined method `template' for #<HandlersController:0x103e69598>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment