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

Version Path
pulitzer-0.15.31 app/controllers/pulitzer/partial_tags_controller.rb
pulitzer-0.15.30 app/controllers/pulitzer/partial_tags_controller.rb
pulitzer-0.15.29 app/controllers/pulitzer/partial_tags_controller.rb
pulitzer-0.15.28 app/controllers/pulitzer/partial_tags_controller.rb
pulitzer-0.15.27 app/controllers/pulitzer/partial_tags_controller.rb
pulitzer-0.15.26 app/controllers/pulitzer/partial_tags_controller.rb
pulitzer-0.15.25 app/controllers/pulitzer/partial_tags_controller.rb
pulitzer-0.15.24 app/controllers/pulitzer/partial_tags_controller.rb
pulitzer-0.15.23 app/controllers/pulitzer/partial_tags_controller.rb
pulitzer-0.15.22 app/controllers/pulitzer/partial_tags_controller.rb
pulitzer-0.15.21 app/controllers/pulitzer/partial_tags_controller.rb
pulitzer-0.15.20 app/controllers/pulitzer/partial_tags_controller.rb