Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
19 lines (15 sloc) 339 Bytes
class ArticlesController < ApplicationController
def index
@articles = Article.all_with_pending
end
def new
@article = Article.new_from_json(params[:json])
end
def create
eventually(CreateAnArticle, params[:article])
redirect_to articles_url
end
def show
@article = Article.find(params[:id])
end
end