mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-16 11:01: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
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue