Skip to content

Instantly share code, notes, and snippets.

@AndrewRayCode
Created January 30, 2015 02:56
Show Gist options
  • Save AndrewRayCode/eef39c0900aa84791c9d to your computer and use it in GitHub Desktop.
Save AndrewRayCode/eef39c0900aa84791c9d to your computer and use it in GitHub Desktop.
Controller:
class ModlessController < ApplicationController
def model_params
params.require(:model).permit(:tag_list)
end
end
Model:
class Model < ActiveRecord::Base
acts_as_taggable
end
POST data:
{ model: { tags: ['hello'] }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment