Displaying 1 result from an estimated 1 matches for "current_display".
2009 Sep 24
5
Non-ActiveRecord based model being passed as string?
I have a model that looks like this (with various other methods)
class HsdPair
  attr_accessor :hsd
  def initialize(hsd)
    @hsd = hsd
    @current_display = 0
    @has_changed_flag = false
  end
end
After initializing this object in the controller
@hsd_pairs = HsdPair.new(@job.hsd_pairs)
using it in the view various times and in various ways, when I try to
pass this object back to the controller for various ajax interactions
like so:
  <%= link...