Hello!
I'm having the following error:
RuntimeError: ERROR C42P01 Mrelation "subjects_users_id_seq" does not exist Fnamespace.c L200 RRangeVarGetRelid: SELECT currval('subjects_users_id_seq')
when I try to do:
subject= SubjectsUser.new(params[:subjects_user]) subject.save
The models:
class User < ActiveRecord::Base has_one :last_entrie has_one :address_book has_and_belongs_to_many :subjects has_one :user_detail has_and_belongs_to_many :subjects end
class Subject < ActiveRecord::Base has_and_belongs_to_many :users belongs_to :subject_group end
class SubjectsUser < ActiveRecord::Base end
Thank you for your attention,
Paulo Abreu