README.md in tramway-landing-1.8.1.1 vs README.md in tramway-landing-1.8.1.2

- old
+ new

@@ -48,13 +48,23 @@ Then create your main page controller `rails g controller web/welcome` *app/controllers/web/welcome_controller.rb* ```ruby class Web::WelcomeController < ApplicationController + before_action :application + + layout 'tramway/landing/application' + def index @blocks = ::Tramway::Landing::BlockDecorator.decorate ::Tramway::Landing::Block.on_main_page end + + private + + def application + @application = ::Tramway::Core.application_object + end end ``` *config/routes.rb* ```ruby @@ -94,9 +104,25 @@ -# everything you want on the main page ``` Then all your showing blocks will be on the main page. + +## Blocks + +How create blocks you can find here + +* [Header](https://github.com/ulmic/tramway-dev/blob/develop/tramway-landing/docs/header/main.md) +* Footer +* Block with text and image +* Block with text, image and button +* Cards +* Features list +* Contacts +* News +* Block with text and button +* View +* Just text ## Contributing Contribution directions go here. ## License