Sha256: cfeb5cbd45363976680d11ac8ed10cd8adc38197d9b511797bbe20282a08747d

Contents?: true

Size: 466 Bytes

Versions: 21

Compression:

Stored size: 466 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

21 entries across 21 versions & 1 rubygems

Version Path
padrino-gen-0.10.1 lib/padrino-gen/generators/templates/controller.rb.tt
padrino-gen-0.10.0 lib/padrino-gen/generators/templates/controller.rb.tt
padrino-gen-0.9.29 lib/padrino-gen/generators/templates/controller.rb.tt
padrino-gen-0.9.28 lib/padrino-gen/generators/templates/controller.rb.tt
padrino-gen-0.9.27 lib/padrino-gen/generators/templates/controller.rb.tt
padrino-gen-0.9.26 lib/padrino-gen/generators/templates/controller.rb.tt
padrino-gen-0.9.24 lib/padrino-gen/generators/templates/controller.rb.tt
padrino-gen-0.9.25 lib/padrino-gen/generators/templates/controller.rb.tt
padrino-gen-0.9.23 lib/padrino-gen/generators/templates/controller.rb.tt
padrino-gen-0.9.22 lib/padrino-gen/generators/templates/controller.rb.tt
padrino-gen-0.9.21 lib/padrino-gen/generators/templates/controller.rb.tt
padrino-gen-0.9.20 lib/padrino-gen/generators/templates/controller.rb.tt
padrino-gen-0.9.19 lib/padrino-gen/generators/templates/controller.rb.tt
padrino-gen-0.9.18 lib/padrino-gen/generators/templates/controller.rb.tt
padrino-gen-0.9.17 lib/padrino-gen/generators/templates/controller.rb.tt
padrino-gen-0.9.16 lib/padrino-gen/generators/templates/controller.rb.tt
padrino-gen-0.9.15 lib/padrino-gen/generators/templates/controller.rb.tt
padrino-gen-0.9.14 lib/padrino-gen/generators/templates/controller.rb.tt
padrino-gen-0.9.13 lib/padrino-gen/generators/templates/controller.rb.tt
padrino-gen-0.9.12 lib/padrino-gen/generators/templates/controller.rb.tt