How can I use acts_as_taggable_on gem with strong parameters in rails 4?
Have:
class User < ActiveRecord::Base
acts_as_tagger
end
class Post < ActiveRecord::Base
acts_as_taggable
end
@post = current_user.tag(@post, :with => :tag_list)
def post_params
params.require(:post).permit(:text, :user_id, :tag_list)
end
How can I add (post_params) to @post?