Hello, I have my model Email and Group.
I have the migration CreateEmailsGroupsJoin
create_table :emails_groups, :id => false do |t|
And in my email_controller, I make a update for my data, but I can’t
change the value of my group_id, in the migration. I can change the
values on email data only.
@email = Email.find( params[ :id ] )
if @email.update_attributes( params[ :email ] ) flash[ :notice ] = "" redirect_to :action => "list" else render "edit" end
I want to know where I change in this code above to edit my group too.