especificar el idioma de un post nuevo

This commit is contained in:
f 2021-10-21 13:44:34 -03:00
parent 3335d0d9eb
commit e3d2213afc

View file

@ -54,7 +54,7 @@ class PostsController < ApplicationController
def new def new
authorize Post authorize Post
@post = site.posts.build(lang: locale, layout: params[:layout]) @post = site.posts(lang: locale).build(layout: params[:layout])
breadcrumb I18n.t('loaf.breadcrumbs.posts.new', layout: @post.layout.humanized_name.downcase), '' breadcrumb I18n.t('loaf.breadcrumbs.posts.new', layout: @post.layout.humanized_name.downcase), ''
end end