README.md in va_common-0.2.5 vs README.md in va_common-0.3.0
- old
+ new
@@ -26,30 +26,16 @@
For the js, include this in the application.js file
//= require va_common_main
-To generate header and footer, run
+Your primary layout (likely application.html.erb) should have a block that looks something like this:
- $ rails generate va_common
+ <%= render 'va_common/main' %>
-To generate just the header, run
+You may also include `va_common/header` and `va_common/footer` separately.
- $ rails generate va_header
-
-To generate just the footer, run
-
- $ rails generate va_footer
-
-Your primary view should look something like this:
-
- <div class="container">
- <%= render '../vendor/va_common/header' %>
- <main role="main">
- <%= yield %>
- <%= render '../vendor/va_common/footer' %>
- </main>
- </div>
+IMPORTANT: Rails must be restarted after installing this gem to ensure the search paths for partials are found.
## Development
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake false` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.