Permalink
Browse files

Don't duplicate instance variables

  • Loading branch information...
1 parent 600096b commit 3df2ffc9d791bf91c1bd4f15e9c1330636eeb02b @excid3 committed Sep 29, 2011
Showing with 1 addition and 2 deletions.
  1. +0 −1 app/controllers/main_controller.rb
  2. +1 −1 app/views/main/index.html.erb
@@ -1,6 +1,5 @@
class MainController < ApplicationController
def index
- @markers = Business.all.to_gmaps4rails
@businesses = Business.all
end
end
@@ -1,6 +1,6 @@
<div class="row">
<div class="span16 gmaps">
- <%= gmaps4rails @markers %>
+ <%= gmaps4rails @businesses.to_gmaps4rails %>
</div>
</div>

0 comments on commit 3df2ffc

Please sign in to comment.