Browse Source

Fix instance variables to locals

denney-disable-on-select
Jason Denney 12 years ago
parent
commit
1c203d86f5
  1. 4
      app/views/bike_models/edit.html.haml
  2. 2
      app/views/bike_models/new.html.haml

4
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"

2
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"

Loading…
Cancel
Save