Sha256: b4348443b6d2e5ae519f11f3b48be0bd8da12652d8dd784276d0b8a299c1c7dc

Contents?: true

Size: 467 Bytes

Versions: 11

Compression:

Stored size: 467 Bytes

Contents

<%= @app_name %>.controllers <%= ":#{@controller}" if @controller %> do
  # get :index, :map => "/foo/bar" do
  #   session[:foo] = "bar"
  #   render 'index'
  # end

  # get :sample, :map => "/sample/url", :provides => [:any, :js] do
  #   case content_type
  #     when :js then ...
  #     else ...
  # end

  # get :foo, :with => :id do
  #   "Maps to url '/foo/#{params[:id]}'"
  # end

  # get "/example" do
  #   "Hello world!"
  # end

  <%= @actions %>
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
padrino-gen-0.10.7 lib/padrino-gen/generators/templates/controller.rb.tt
padrino-gen-0.10.6 lib/padrino-gen/generators/templates/controller.rb.tt
padrino-gen-0.10.6.e lib/padrino-gen/generators/templates/controller.rb.tt
padrino-gen-0.10.6.d lib/padrino-gen/generators/templates/controller.rb.tt
padrino-gen-0.10.6.c lib/padrino-gen/generators/templates/controller.rb.tt
padrino-gen-0.10.6.b lib/padrino-gen/generators/templates/controller.rb.tt
padrino-gen-0.10.6.a lib/padrino-gen/generators/templates/controller.rb.tt
padrino-gen-0.10.5 lib/padrino-gen/generators/templates/controller.rb.tt
padrino-gen-0.10.4 lib/padrino-gen/generators/templates/controller.rb.tt
padrino-gen-0.10.3 lib/padrino-gen/generators/templates/controller.rb.tt
padrino-gen-0.10.2 lib/padrino-gen/generators/templates/controller.rb.tt