search for: controller_actions

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

2013 Mar 24
5
Rails 4.0 has_many_through and fields_for
...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 callbacks to share common setup or constraints between actions. def set_controller_action @controller_action = ControllerAction.find(params[:id]) end # Never trust parameters from the scary internet, only allow th...