Hi,
I'm not 100% sure, but I think you have to close the ->"" and add %
(model).name.to_s or %(model).to_s !!



On 6 Jan., 22:47, "Jose tomas R." <[email protected]> wrote:
> I need something to translate
>
> format.html { redirect_to(@news, :notice => 'News was successfully
> created.') }
>
> This --> 'News was successfully created.'
>
> so I make
>
> controller_created: "%{model} was successfully created"
>
> For using it on every controller, but on the browser Im getting
>
> %{model} was successfully created, so %{model} isn't replaced by the
> model name, Is there a way of doing this?
>
> --
> Posted viahttp://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups 
"rails-i18n" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rails-i18n?hl=en.

Reply via email to