Sha256: 02a164115fa2d8fe7fa8472c0637707f0a25505c481e3f99ac8bec3d2ef7833b

Contents?: true

Size: 1.85 KB

Versions: 4

Compression:

Stored size: 1.85 KB

Contents

<%
  row = cell(:elements, :row).new
  block = cell(:elements, :block).new(class: 'xs-12 sm-12 md-12')
  code = cell(:elements, :code).new
%>

<!-- PRESENTATION -->
<%=raw row.open %>

  <%=raw block.open %>

    <%=raw cell(:elements, :title).new(label: 'General: Generators') %>

    <p>Generators are used to speed up your development with lato.</p>

    <br>
    <%=raw cell(:elements, :title).new(label: 'Initialize project', size: 2) %>

    <p>To initialize your project with lato you can run:</p>

<%=raw code.open %>

$> rails generate lato_core:initializer

<%=raw code.close %>

    <p>
    This command should:
      <ul>
        <li>Create a application_controller.rb file inside app/controllers/lato path.</li>
        <li>Create a index.html.erb file inside app/views/lato/application path.</li>
        <li>Create some stylesheets files inside app/assets/stylesheets/lato path.</li>
        <li>Create a application.js file inside app/assets/javascripts/lato path.</li>
        <li>Create a logo.svg file inside app/assets/images/lato path.</li>
      </ul>
    </p>

    <br>
    <%=raw cell(:elements, :title).new(label: 'Create a scaffold', size: 2) %>

<%=raw code.open %>

$> rails generate lato_core:scaffold ModelName

<%=raw code.close %>

    <br>
    <%=raw cell(:elements, :title).new(label: 'Create a crud', size: 2) %>

<%=raw code.open %>

$> rails generate lato_core:crud ModelName

<%=raw code.close %>

    <br>
    <%=raw cell(:elements, :title).new(label: 'Create only crud controller', size: 2) %>

<%=raw code.open %>

$> rails generate lato_core:crud_controller ModelName

<%=raw code.close %>

    <br>
    <%=raw cell(:elements, :title).new(label: 'Create only crud views', size: 2) %>

<%=raw code.open %>

$> rails generate lato_core:crud_views ModelName

<%=raw code.close %>

  <br>
  <%=raw block.close %>

<%=raw row.close %>
<!-- / PRESENTATION -->

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
lato_core-2.2.2 app/views/lato_core/doc/general/generators.html.erb
lato_core-2.2.0 app/views/lato_core/doc/general/generators.html.erb
lato_core-2.1.4 app/views/lato_core/doc/general/generators.html.erb
lato_core-2.1.3 app/views/lato_core/doc/general/generators.html.erb