Sha256: 96702bf1b02a3dbe45de668d70200647cefd857dd9de52eac6b909286bd65f34

Contents?: true

Size: 277 Bytes

Versions: 4

Compression:

Stored size: 277 Bytes

Contents

<%= @app_name %>.controllers do
  # get :index, :map => "/foo/bar" do
  #   session[:foo] = "bar"
  #   render 'index'
  # end
  
  # get :sample, :map => "/sample/url" do
  #   "Hello world!"
  # end

  # get "/example" do
  #   "Hello world!"
  # end
  
  <%= @actions %>
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
padrino-gen-0.6.7 lib/padrino-gen/generators/templates/controller.rb.tt
padrino-gen-0.6.3 lib/padrino-gen/generators/templates/controller.rb.tt
padrino-gen-0.6.2 lib/padrino-gen/generators/templates/controller.rb.tt
padrino-gen-0.6.1 lib/padrino-gen/generators/templates/controller.rb.tt