Skip to content

Commit

Permalink
Bump to 1.2.4
Browse files Browse the repository at this point in the history
* Update NEWS file
  • Loading branch information
harlow committed Jul 19, 2013
1 parent 92d03d0 commit cfdf30f
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 2 deletions.
8 changes: 7 additions & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
New for 1.2.4:
+ Add page and action caching
+ Remove redundant link style `page_path(id: 'about')` from README
+ Clean up Appraisals for Travis-CI
+ Remove Ruby 1.8.7 from test suite

New for 1.2.3:
+ Updates for Rails 4 compatibility.
+ Fix for Rails 4 circular dependency error.
+ Add ability to load HighVolage outside of rails. Require `attribute_accessors`
+ Add ability to load High Voltage outside of rails. Require `attribute_accessors`

New for 1.2.2:
+ Bug fix for RootRoute constraint. Support haml, slim, etc.
Expand Down
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,23 @@ root :to => 'high_voltage/pages#show', id: 'home'

Which will render a homepage from app/views/pages/home.html.erb

#### Page title's and meta-data

We suggest using `content_for` and `yield` for setting custom page titles and
meta-data on High Voltage pages.

```ruby
# app/views/pages/about.html.erb
<%= content_for :page_title, 'About Us - Custom page title' %>
```
Then print the contents of `:title` into the layout:
```ruby
# app/views/layouts/application.html.erb
<title><%= yield(:page_title) %></title>
```

#### Top-level routes

You can remove the directory `pages` from the URL path and serve up routes from
Expand Down
2 changes: 1 addition & 1 deletion lib/high_voltage/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module HighVoltage
VERSION = '1.2.3'.freeze
VERSION = '1.2.4'.freeze
end

0 comments on commit cfdf30f

Please sign in to comment.