Sha256: e3d945c4561170f02871801fe6d6a4924568e966395df4a4a87e95b3e06950c0

Contents?: true

Size: 1.18 KB

Versions: 6

Compression:

Stored size: 1.18 KB

Contents

require File.expand_path('../../application_template_helper', __FILE__)

generate_test_application do

  #*****************************************************************************
  #  MODELS AND SCAFFOLDING

  generate(:scaffold, 'galaxy name:string --old-style-hash')
  generate(:scaffold, 'planet name:string --old-style-hash')
  generate(:scaffold, 'star name:string --old-style-hash')

  #*****************************************************************************
  #  MORE CONTROLLERS AND VIEWS

  generate(:controller, 'home index --old-style-hash')
  replace_view 'home', 'index', <<-CODE.strip_heredoc
    <h1>Explanation</h1>
    This tests using a custom renderer for the tabs.
  CODE

  #*****************************************************************************
  #  MORE ROUTES

  route "root :to => 'home#index'"

  #*****************************************************************************
  #  LAYOUT

  replace_application_layout <<-CODE.strip_heredoc
    <!DOCTYPE html>
    <html>
    <head>
      <title>CustomRenderer</title>
      <%= csrf_meta_tag %>
    </head>
    <body>

    <h1>Custom Renderer</h1>
    <%= tabs %>
    <%= yield %>

    </body>
    </html>
  CODE

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
tabulous-2.1.4 spec/applications/custom_renderer/application_template.rb
tabulous-2.1.3 spec/applications/custom_renderer/application_template.rb
tabulous-2.1.2 spec/applications/custom_renderer/application_template.rb
tabulous-2.1.1 spec/applications/custom_renderer/application_template.rb
tabulous-2.1.0 spec/applications/custom_renderer/application_template.rb
tabulous-2.0.0 spec/applications/custom_renderer/application_template.rb