Sha256: 8825524e3d1fffaa2b7bd50d455b29fed84008e6f68c00869e7f0949b40b5b41

Contents?: true

Size: 232 Bytes

Versions: 22

Compression:

Stored size: 232 Bytes

Contents

class PostsController < ApplicationController
  respond_to :html, :json
  
  def new
    @post = Post.new
    
    respond_with @post
  end
  
  def create
    @post = Post.create params[:post]
    
    respond_with @post
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
edifice-1.0 test/rails3/app/controllers/posts_controller.rb
edifice-0.10.3 test/rails3/app/controllers/posts_controller.rb
edifice-0.10.2 test/rails3/app/controllers/posts_controller.rb
edifice-0.10.1 test/rails3/app/controllers/posts_controller.rb
edifice-0.10.0 test/rails3/app/controllers/posts_controller.rb
edifice-0.9.0 test/rails3/app/controllers/posts_controller.rb
edifice-0.8.0 test/rails3/app/controllers/posts_controller.rb
edifice-0.7.3 test/rails3/app/controllers/posts_controller.rb
edifice-0.7.2 test/rails3/app/controllers/posts_controller.rb
edifice-0.7.1 test/rails3/app/controllers/posts_controller.rb
edifice-0.7.0 test/rails3/app/controllers/posts_controller.rb
edifice-0.6.9 test/rails3/app/controllers/posts_controller.rb
edifice-0.6.8 test/rails3/app/controllers/posts_controller.rb
edifice-0.6.7 test/rails3/app/controllers/posts_controller.rb
edifice-0.6.6 test/rails3/app/controllers/posts_controller.rb
edifice-0.6.5 test/rails3/app/controllers/posts_controller.rb
edifice-0.6.4 test/rails3/app/controllers/posts_controller.rb
edifice-0.6.3 test/rails3/app/controllers/posts_controller.rb
edifice-0.6.2 test/rails3/app/controllers/posts_controller.rb
edifice-0.6.1 test/rails3/app/controllers/posts_controller.rb