Displaying 2 results from an estimated 2 matches for "full_template_path".
2005 Dec 19
1
Preserving fallback with RJS
...emplate_path}"
end
end
def render_file(template_path, use_full_path = true, local_assigns = {})
@first_render = template_path if @first_render.nil?
if use_full_path
template_extension = pick_template_extension(template_path)
template_file_name = full_template_path(template_path,
template_extension)
else
template_file_name = template_path
template_extension = template_path.split(''.'').last
end
template_source = nil # Don''t read the source until we know that
it is required
.......
end
With...
2005 Oct 24
3
Custom View Location
Hi,
I would like to have the ability for my application''s
.rhtml files to be customized after I give my app to a
client. However I don''t want them to mess with the
existing templates. Basically I would like to look in
a directory lets say "customize" which would be off
the RAILS_ROOT directory. If a .rhtml is in the
"customize" there use that one, if not