So i have some instance variables being set in my rails 3.1 controller that are simply failing to exist when i try to call them in my views on heroku (they work fine locally).
With a similar other model with a similar data structure and the same instance variables, it works fine - which makes it all the weirder. Also some instance vars are getting through ok - so i'm struggling to find out what is causing this problem.
Here's a quick example
class PointsController < ApplicationController def show @point = Point.find(params[:id]) @area = @point.area @zoom = 15 @ff = 0 @ff = params[:ff].to_i if params[:ff] and params[:ff].to_i end end
In my view, if i put: <%= @point.name %> or <%= @ff %> - they work both on local and heroku environments and the values are returned BUT if i put in:
<%= @zoom %> and <%= @area %> these work locally, but return nothing in the heroku environment. it's just totally random.