Created
January 4, 2017 15:53
-
-
Save farmanp/790763fc9fb543878011b13601b4106a to your computer and use it in GitHub Desktop.
Couldn't find Article by uuid
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
private | |
# Use callbacks to share common setup or constraints between actions. | |
def set_statement | |
@statement = Statement.find(params[:id]) | |
end | |
def set_article | |
@article = Article.find(params[:article_id]) | |
end | |
# Never trust parameters from the scary internet, only allow the white list through. | |
def statement_params | |
params.require(:statement).permit(:structure, :text) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment