Skip to content

Instantly share code, notes, and snippets.

View ldnunes's full-sized avatar
👷
BUILDING...

Lucas Dutra Nunes ldnunes

👷
BUILDING...
  • Power Factors LLC.
  • Munich, Germany
  • 15:39 (UTC +01:00)
View GitHub Profile
@shruti28
shruti28 / gist:6020372
Last active December 19, 2015 21:29
can someone explain how the attributes of subclass be saved after it extends some superclass...The type in super class is getting saved bt no attribute is getting saved for subclass
class Party < ActiveRecord::Base
attr_accessible :dateCreated, :lastUpdate, :tempForUpdate, :type
end
>>>>>>>>>>
class Project < Party
attr_accessible :country, :department, :email, :firstName, :lastName, :location, :mobilePhone, :title
end
>>>>>>>>>>>>
class ProjectsController < ApplicationController
def save