From 82f16e71d49350c1ad4aa48773db5d0f45a55c6c Mon Sep 17 00:00:00 2001 From: hukl Date: Mon, 2 Mar 2009 20:29:25 +0100 Subject: introducing page templates - need to add edit capabilities renamed the custom template folder forgot one fix for the new custom template path page templates refined renamed page attribute template to template_name as i suspected it to be a reserved word. it still didn't work until i discovered that simon defined the accessible attributes! That costed me 40 minutes of lifetime. But he apologized ;) tests for public and custom page templates --- app/views/nodes/edit.html.erb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'app/views/nodes') diff --git a/app/views/nodes/edit.html.erb b/app/views/nodes/edit.html.erb index 64d47562..929bbf6a 100644 --- a/app/views/nodes/edit.html.erb +++ b/app/views/nodes/edit.html.erb @@ -13,7 +13,10 @@ <%= f.error_messages %> <% fields_for @draft do |d| %> -

+

+ <%= d.label :template_name %> + <%= d.select :template_name, custom_page_templates %> +

<%= d.label :title %>
<%= d.text_field :title %> -- cgit v1.3