Sha256: 55dcd38d83d720ff7e6e3c42e65d5fbe83800cc524177d44fc09cb794eac1ed4

Contents?: true

Size: 590 Bytes

Versions: 23

Compression:

Stored size: 590 Bytes

Contents

<%= @project_name %>::<%= @app_name %>.controllers <%= ":#{@controller}" if @controller %><%= ", #{@block_opts_string}" if @block_opts_string %> do
  <%= "layout :#{@layout}" if @layout %>
  # 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
  <%= "\n#{@actions}" %>
end

Version data entries

23 entries across 23 versions & 2 rubygems

Version Path
padrino-gen-0.11.3 lib/padrino-gen/generators/templates/controller.rb.tt
padrino-gen-0.11.2 lib/padrino-gen/generators/templates/controller.rb.tt
padrino-gen-0.11.1 lib/padrino-gen/generators/templates/controller.rb.tt