Hi, I've realized that ActiveScaffold includes some locales under the
directory lib/active_scaffold/locale/.
In my SubscriberController I've added:
I18n.locale = :es
so the language is shown in Spanish. However I get a 500 error when I
press "Crear Nuevo" ("Create New"):
-----------------------------------------------------------------------------------------------------------------------------------
Sat May 01 23:22:43 +0200 2010#<NoMethodError: undefined method `-'
for "translation missing: es, date, order":String> -- on the
ActiveScaffold column = :start_date in SubscribersController
ActionView::TemplateError (undefined method `-' for "translation
missing: es, date, order":String) on line #7 of
vendor/plugins/active_scaffold/frontends/default/views/_form_attribute.html.erb:
4: <label for="<%= active_scaffold_input_options(column,
scope)[:id] %>"><%= column.label %></label>
5: </dt>
6: <dd>
7: <%= active_scaffold_input_for column, scope %>
8: <% if column.options.is_a?(Hash) && column.options[:update_column] -%>
9: <%= loading_indicator_tag(:action => :render_field, :id =>
params[:id]) %>
10: <% end -%>
vendor/plugins/active_scaffold/frontends/default/views/_form_attribute.html.erb:7
vendor/plugins/active_scaffold/frontends/default/views/_form.html.erb:14
vendor/plugins/active_scaffold/frontends/default/views/_form.html.erb:2
vendor/plugins/active_scaffold/frontends/default/views/_create_form.html.erb:41
-----------------------------------------------------------------------------------------------------------------------------------
Do I miss something? Thanks.
--
Iñaki Baz Castillo
<[email protected]>
--
You received this message because you are subscribed to the Google Groups
"ActiveScaffold : Ruby on Rails plugin" 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/activescaffold?hl=en.