calebhearth/title

Interaction with HighVoltage pages

tute opened this issue · 7 comments

tute commented

Through pages#show, High Voltage shows different static pages in Rails apps. I'd like to define a different title to each, but for that to happen title would need to accept the page name (id) as locale key. Do you think title should do that?
Thank you!

I agree that thoughtbot/suspenders#600 (comment) should work.

I can't think offhand of a clean way to do that.

Generally my answer for HV has been to use flutie's page_title helper.

tute commented

Right! @title_options = { page_title: params[:id].capitalize }, or whatever.

tute commented

I'm happy with that, will close this issue. Thanks!

That only works if the slug is what you want :/

For this stumbling on this in the future, this is an ivar Suspenders passes into title, so basically just additional_context in title parlance.

On Sep 21, 2015, at 3:37 PM, Tute Costa notifications@github.com wrote:

I'm happy with that, will close this issue. Thanks!


Reply to this email directly or view it on GitHub.