Sha256: 6d98d3b2d94f81aabb00fda452a9f5c6f43dc60a8bcdb23029eb61b0a7fe0ca0

Contents?: true

Size: 232 Bytes

Versions: 77

Compression:

Stored size: 232 Bytes

Contents

PadrinoTest.controllers :posts do
  get :index do
    @posts = Post.order("id ASC")
    render "posts/index"
  end

  get :show, :map => "/posts", :with => :id do
    @post = Post.find(params[:id])
    render "posts/show"
  end
end

Version data entries

77 entries across 77 versions & 2 rubygems

Version Path
rabl-0.14.3 fixtures/padrino_test/app/controllers/posts.rb
rabl-0.14.2 fixtures/padrino_test/app/controllers/posts.rb
rabl-0.14.1 fixtures/padrino_test/app/controllers/posts.rb
rabl-0.14.0 fixtures/padrino_test/app/controllers/posts.rb
rabl-0.13.1 fixtures/padrino_test/app/controllers/posts.rb
rabl-0.13.0 fixtures/padrino_test/app/controllers/posts.rb
rabl-0.12.0 fixtures/padrino_test/app/controllers/posts.rb
rabl-0.11.8 fixtures/padrino_test/app/controllers/posts.rb
rabl-0.11.7 fixtures/padrino_test/app/controllers/posts.rb
solidus_backend-1.0.0.pre3 vendor/bundle/gems/rabl-0.11.6/fixtures/padrino_test/app/controllers/posts.rb
solidus_backend-1.0.0.pre2 vendor/bundle/gems/rabl-0.11.6/fixtures/padrino_test/app/controllers/posts.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/rabl-0.11.6/fixtures/padrino_test/app/controllers/posts.rb
rabl-0.11.6 fixtures/padrino_test/app/controllers/posts.rb
rabl-0.11.5 fixtures/padrino_test/app/controllers/posts.rb
rabl-0.11.4 fixtures/padrino_test/app/controllers/posts.rb
rabl-0.11.3 fixtures/padrino_test/app/controllers/posts.rb
rabl-0.11.2 fixtures/padrino_test/app/controllers/posts.rb
rabl-0.11.1 fixtures/padrino_test/app/controllers/posts.rb
rabl-0.11.0 fixtures/padrino_test/app/controllers/posts.rb
rabl-0.10.1 fixtures/padrino_test/app/controllers/posts.rb