Sha256: d7dd32699f1e42cf3e4e23031ff2fce968b0b7106aacc101ad4915ce7b441885

Contents?: true

Size: 212 Bytes

Versions: 12

Compression:

Stored size: 212 Bytes

Contents

class PostsController < ApplicationController
  validate_schema

  def create
    render text: "Created #{params[:post][:title]}"
  end

  def update
    render text: "Updated #{params[:post][:title]}"
  end
end

Version data entries

12 entries across 6 versions & 1 rubygems

Version Path
json_schema_rails-0.2.1 spec/dummy_apps/rails4/app/controllers/posts_controller.rb
json_schema_rails-0.2.1 spec/dummy_apps/rails3/app/controllers/posts_controller.rb
json_schema_rails-0.2.0 spec/dummy_apps/rails3/app/controllers/posts_controller.rb
json_schema_rails-0.2.0 spec/dummy_apps/rails4/app/controllers/posts_controller.rb
json_schema_rails-0.1.0 spec/dummy_apps/rails3/app/controllers/posts_controller.rb
json_schema_rails-0.1.0 spec/dummy_apps/rails4/app/controllers/posts_controller.rb
json_schema_rails-0.0.3 spec/dummy_apps/rails3/app/controllers/posts_controller.rb
json_schema_rails-0.0.3 spec/dummy_apps/rails4/app/controllers/posts_controller.rb
json_schema_rails-0.0.2 spec/dummy_apps/rails4/app/controllers/posts_controller.rb
json_schema_rails-0.0.2 spec/dummy_apps/rails3/app/controllers/posts_controller.rb
json_schema_rails-0.0.1 spec/dummy_apps/rails3/app/controllers/posts_controller.rb
json_schema_rails-0.0.1 spec/dummy_apps/rails4/app/controllers/posts_controller.rb