Sha256: 28d01f75b1bc7d365c0005c700c98473ae27e476e55315199122e81021ec1139
Contents?: true
Size: 567 Bytes
Versions: 12
Compression:
Stored size: 567 Bytes
Contents
class Pulitzer::PartialTagsController < Pulitzer::ApplicationController def new @tag_model = params[:tag_model] @partial = Pulitzer::Partial.find params[:partial_id] @partial_tag = @partial.partial_tags.new label_type: @tag_model render partial: 'new', locals: { tag_model: @tag_model, partial_tag: @partial_tag, partial: @partial } end def create @partial_tag = CreatePartialTag.new(params).call render partial: 'show', locals: { partial: @partial_tag.partial, partial_tag: @partial_tag, tag_model: @partial_tag.label_type } end end
Version data entries
12 entries across 12 versions & 1 rubygems