D
David Lewis
I'm using erb as a templating package to generate html files -- not in
Rails.
Question -- is there a way to use the action_view package to augment the
templates? For example -- link_to( "clickable text", href_path) is in
action_view/helpers/url_helper.
But I cannot set up the requires to load that. I've tried ...
require 'erb'
require 'action_view/helpers/url_helper'
... and many other permutations. I've looked at code examples online,
worked by analogy, etc. The requires all bomb. Others that look
similar, like -- require 'active_support/core_ext/hash' -- seem to work
fine.
Are there other prerequisites? Am I missing something fundamental? Is
this documented somewhere?
Thanks. --David
Rails.
Question -- is there a way to use the action_view package to augment the
templates? For example -- link_to( "clickable text", href_path) is in
action_view/helpers/url_helper.
But I cannot set up the requires to load that. I've tried ...
require 'erb'
require 'action_view/helpers/url_helper'
... and many other permutations. I've looked at code examples online,
worked by analogy, etc. The requires all bomb. Others that look
similar, like -- require 'active_support/core_ext/hash' -- seem to work
fine.
Are there other prerequisites? Am I missing something fundamental? Is
this documented somewhere?
Thanks. --David