Sha256: d5c383d610a8222d950f73e09ef65ec93e7d5505d2134b91e63bef21d4e79da3

Contents?: true

Size: 178 Bytes

Versions: 1

Compression:

Stored size: 178 Bytes

Contents

module Api
  class PostsController < BaseController

    def index
      user = User.find params[:user_id]
      @posts = user.posts
      respond_with @posts
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
metova-dummy-0.0.1 lib/metova/dummy/app/controllers/api/posts_controller.rb