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?
on 2011-01-06 22:47
on 2011-01-07 12:24
Hi, I'm not 100% sure, but I think you have to close the ->"" and add % (model).name.to_s or %(model).to_s !!
Please log in before posting. Registration is free and takes only a minute.
Existing account
(Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
Log in with Google account | Log in with Yahoo account
No account? Register here.