Sha256: f47bd4f715b28a49a00af9ad6eebbeb3a4a969388220d14b980ef472305783f4

Contents?: true

Size: 396 Bytes

Versions: 8

Compression:

Stored size: 396 Bytes

Contents

# Define your named routes inside config/urls.rb or define them inline
# You can also use unnamed routes by defining them directly

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

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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
padrino-gen-0.5.0 lib/padrino-gen/generators/templates/controller.rb.tt
padrino-gen-0.4.6 lib/padrino-gen/generators/templates/controller.rb.tt
padrino-gen-0.4.5 lib/padrino-gen/generators/templates/controller.rb.tt
padrino-gen-0.2.9 lib/padrino-gen/generators/templates/controller.rb.tt
padrino-gen-0.2.6 lib/padrino-gen/generators/templates/controller.rb.tt
padrino-gen-0.2.5 lib/padrino-gen/generators/templates/controller.rb.tt
padrino-gen-0.2.2 lib/generators/templates/controller.rb.tt
padrino-gen-0.2.1 lib/generators/templates/controller.rb.tt