Sha256: 2f1f45d6eb2ea2108f66d31b602d9a4c95b7296a603a76f046079f3e3938fb01

Contents?: true

Size: 360 Bytes

Versions: 17

Compression:

Stored size: 360 Bytes

Contents

class ArticlesController < ApplicationController
  before_filter :authenticate, :except => [:index, :show]

  def index
    @articles = Article.all
  end

  def new
    @article = Article.new
  end

  def create
    @article = Article.new params[:article]
    if @article.save
      redirect_to :action => 'index'
    else
      render 'new'
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
quo_vadis-1.4.2 test/dummy/app/controllers/articles_controller.rb
quo_vadis-1.4.1 test/dummy/app/controllers/articles_controller.rb
quo_vadis-1.4.0 test/dummy/app/controllers/articles_controller.rb
quo_vadis-1.3.2 test/dummy/app/controllers/articles_controller.rb
quo_vadis-1.3.1 test/dummy/app/controllers/articles_controller.rb
quo_vadis-1.3.0 test/dummy/app/controllers/articles_controller.rb
quo_vadis-1.2.3 test/dummy/app/controllers/articles_controller.rb
quo_vadis-1.2.2 test/dummy/app/controllers/articles_controller.rb
quo_vadis-1.2.1 test/dummy/app/controllers/articles_controller.rb
quo_vadis-1.2.0 test/dummy/app/controllers/articles_controller.rb
quo_vadis-1.1.2 test/dummy/app/controllers/articles_controller.rb
quo_vadis-1.1.1 test/dummy/app/controllers/articles_controller.rb
quo_vadis-1.1.0 test/dummy/app/controllers/articles_controller.rb
quo_vadis-1.0.7 test/dummy/app/controllers/articles_controller.rb
quo_vadis-1.0.6 test/dummy/app/controllers/articles_controller.rb
quo_vadis-1.0.5 test/dummy/app/controllers/articles_controller.rb
quo_vadis-1.0.4 test/dummy/app/controllers/articles_controller.rb