From 1c203d86f55af8a2b2d94962b99d654c41993661 Mon Sep 17 00:00:00 2001 From: Jason Denney Date: Sun, 9 Dec 2012 13:16:26 -0500 Subject: [PATCH] Fix instance variables to locals --- app/views/bike_models/edit.html.haml | 4 ++++ app/views/bike_models/new.html.haml | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 app/views/bike_models/edit.html.haml diff --git a/app/views/bike_models/edit.html.haml b/app/views/bike_models/edit.html.haml new file mode 100644 index 0000000..239a216 --- /dev/null +++ b/app/views/bike_models/edit.html.haml @@ -0,0 +1,4 @@ +- model_class = bike_model.class +.page-header + %h1=t '.title', :default => t('helpers.titles.edit', :model => model_class.model_name.human, :default => "Edit #{model_class.model_name.human}") += render :partial => "form" diff --git a/app/views/bike_models/new.html.haml b/app/views/bike_models/new.html.haml index bb5ebd9..d04edfe 100644 --- a/app/views/bike_models/new.html.haml +++ b/app/views/bike_models/new.html.haml @@ -1,4 +1,4 @@ -- model_class = @bike_model.class +- model_class = bike_model.class .page-header %h1=t '.title', :default => t('helpers.titles.new', :model => model_class.model_name.human, :default => "New #{model_class.model_name.human}") = render :partial => "form"