Sha256: de15219df8e3f2b378f53cd2b7e35303c923e79d4c7039c92d0fcf39f57baa26

Contents?: true

Size: 1.72 KB

Versions: 2

Compression:

Stored size: 1.72 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>

    <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>

    <p>To generate files used to manage a crud you can run:</p>

<%=raw code.open %>

$> rails generate lato_core:crud

<%=raw code.close %>

    <p>
      This command should:
      <ul>
        <li>Create a crud_controller.rb file inside app/controllers/lato path.</li>
        <li>Create a index.html.erb file inside app/views/lato/crud path.</li>
        <li>Create a show.html.erb file inside app/views/lato/crud path.</li>
        <li>Create a new.html.erb file inside app/views/lato/crud path.</li>
        <li>Create a edit.html.erb file inside app/views/lato/crud path.</li>
        <li>Create a _form.html.erb file inside app/views/lato/crud/shared path.</li>
      </ul>
    </p>

  <%=raw block.close %>

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
lato_core-2.1.1 app/views/lato_core/doc/general/generators.html.erb
lato_core-2.1 app/views/lato_core/doc/general/generators.html.erb