Created
January 30, 2015 02:56
-
-
Save AndrewRayCode/eef39c0900aa84791c9d to your computer and use it in GitHub Desktop.
This file contains 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
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