Sha256: e49cf95e273f4191cb6c39c5f51615e6ddeaa41195c185124627a7e1fe21e556

Contents?: true

Size: 175 Bytes

Versions: 3

Compression:

Stored size: 175 Bytes

Contents

def posts
    @posts = Post.published.page(params[:page]).per(10)
  end

  def show_post
    @post = Post.friendly.find(params[:id])
  rescue
    redirect_to root_path
  end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
railsbricks-3.7.0 lib/railsbricks/assets/controllers/posts_controller.rbr
phoenixbricks-3.2.7 lib/railsbricks/assets/controllers/posts_controller.rbr
phoenixbricks-3.2.6 lib/railsbricks/assets/controllers/posts_controller.rbr