search for: controller_action

Displaying 1 result from an estimated 1 matches for "controller_action".

Did you mean: controller_actions
2013 Mar 24
5
Rails 4.0 has_many_through and fields_for
....enable ||= true } else o << Interaction.new(:role_id => r.id) end end end end end class Role < ActiveRecord::Base has_many :interactions end class Interaction < ActiveRecord::Base belongs_to :controller_action belongs_to :role attr_accessor :enable # nice little thingy here # It is now recommended to use strong params instead of ''attr_accessible :enable, :controller_action_id, :role_id'' end controller_actions_controller.rb ... private # Use ca...