class Dimension < ActiveRecord::Base self.abstract_class = true @@dimensions = [] def dimensions @@dimensions end def initializeadsf super() puts "content of the dimension: \n" puts @dimensions.inspect @dimensions.each do |dimension| reference = dimension + able hasone dimension.to_sym as: reference.to_sym end end def setup value self.create({value: value}) end def revise(params) title.update_attributes({title: params[:post][:title_attributes][:value]}) title.save end end