Sha256: 5dd0e2a7b23f65e2e431124195d09f13babd1bf86a04adad95f3c9dd5c694dfb
Contents?: true
Size: 448 Bytes
Versions: 1
Compression:
Stored size: 448 Bytes
Contents
<%= @app_name %>.controllers :<%= @controller %> 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 # "Maps to url '/foo/#{params[:id]}'" # end # get "/example" do # "Hello world!" # end <%= @actions %> end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
padrino-gen-0.9.10 | lib/padrino-gen/generators/templates/controller.rb.tt |