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