リビジョン 8af218b4
| app/controllers/glossary_styles_controller.rb | ||
|---|---|---|
|
}
|
||
|
end
|
||
|
else
|
||
|
@glossary_style = GlossaryStyle.new(params[:glossary_style])
|
||
|
@glossary_style = GlossaryStyle.new(glossary_style_params)
|
||
|
end
|
||
|
|
||
|
@glossary_style.user_id = User.current.id
|
||
| ... | ... | |
|
add_search_params(newparams)
|
||
|
redirect_to(newparams)
|
||
|
end
|
||
|
|
||
|
private
|
||
|
|
||
|
def glossary_style_params
|
||
|
params.require(:glossary_style).permit(:groupby)
|
||
|
end
|
||
|
end
|
||
Make strong parameter instead of attr_accessible