Created
June 6, 2017 16:27
-
-
Save ryenski/f917def86d8cb4995f69e233764edbfb to your computer and use it in GitHub Desktop.
Example controller using Single Table Inheritance
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class LeadMagnetsController < FormsController | |
private | |
def skope | |
current_user.lead_magnets | |
end | |
def form_params | |
params[:form] = params[:lead_magnet] | |
params.require(:form).permit(permitted_params) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment