Sha256: 876ed1ec3349541779703f6bf4e2049f5ae7ceec2333849e38b898726f5eca89

Contents?: true

Size: 432 Bytes

Versions: 21

Compression:

Stored size: 432 Bytes

Contents

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

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

  # get :foo, :with => :id do
  #   "Im 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.9.4 lib/padrino-gen/generators/templates/controller.rb.tt
padrino-gen-0.9.3 lib/padrino-gen/generators/templates/controller.rb.tt
padrino-gen-0.9.2 lib/padrino-gen/generators/templates/controller.rb.tt
padrino-gen-0.9.1 lib/padrino-gen/generators/templates/controller.rb.tt
padrino-gen-0.9.0 lib/padrino-gen/generators/templates/controller.rb.tt
padrino-gen-0.8.5 lib/padrino-gen/generators/templates/controller.rb.tt
padrino-gen-0.8.4 lib/padrino-gen/generators/templates/controller.rb.tt
padrino-gen-0.8.3 lib/padrino-gen/generators/templates/controller.rb.tt
padrino-gen-0.8.2 lib/padrino-gen/generators/templates/controller.rb.tt
padrino-gen-0.8.1 lib/padrino-gen/generators/templates/controller.rb.tt
padrino-gen-0.8.0 lib/padrino-gen/generators/templates/controller.rb.tt
padrino-gen-0.7.9 lib/padrino-gen/generators/templates/controller.rb.tt
padrino-gen-0.7.8 lib/padrino-gen/generators/templates/controller.rb.tt
padrino-gen-0.7.7 lib/padrino-gen/generators/templates/controller.rb.tt
padrino-gen-0.7.6 lib/padrino-gen/generators/templates/controller.rb.tt
padrino-gen-0.7.5 lib/padrino-gen/generators/templates/controller.rb.tt
padrino-gen-0.7.4 lib/padrino-gen/generators/templates/controller.rb.tt
padrino-gen-0.7.3 lib/padrino-gen/generators/templates/controller.rb.tt
padrino-gen-0.7.2 lib/padrino-gen/generators/templates/controller.rb.tt
padrino-gen-0.7.1 lib/padrino-gen/generators/templates/controller.rb.tt