Fix instance variables to locals

This commit is contained in:
Jason Denney
2012-12-09 13:16:26 -05:00
parent 4ae03fc563
commit 1c203d86f5
2 changed files with 5 additions and 1 deletions
+4
View File
@@ -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"
+1 -1
View File
@@ -1,4 +1,4 @@
- model_class = @bike_model.class - model_class = bike_model.class
.page-header .page-header
%h1=t '.title', :default => t('helpers.titles.new', :model => model_class.model_name.human, :default => "New #{model_class.model_name.human}") %h1=t '.title', :default => t('helpers.titles.new', :model => model_class.model_name.human, :default => "New #{model_class.model_name.human}")
= render :partial => "form" = render :partial => "form"