mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-16 15:51:41 +00:00
especificar el idioma de un post nuevo
This commit is contained in:
parent
3335d0d9eb
commit
e3d2213afc
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue