5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-16 13:51:41 +00:00

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
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), ''
end