If i comment line 39 of active_scaffold/frontends/default/views/
_update_form.html.erb the error goes away, but when a field validation
enforces, although the field becomes red and it works as it should, no
actual message is displayed. Same thing on line 35 of
_create_form.html.erb (same path).
Here is the full stack:
Rendering on_update
ActionView::TemplateError (undefined method `content_tag' for
I18n:Module) on line #40 of vendor/plugins/active_scaffold/frontends/
default/views/_update_form.html.erb:
37: <div id="<%= element_messages_id(:action => :update) %>"
class="messages-container">
38: <% if request.xhr? -%>
39: <%= error_messages_for :record, :object_name =>
@record.class.human_name.downcase %>
40:
41: <% else -%>
42: <%= render :partial => 'form_messages' %>
43: <% end -%>
vendor/plugins/active_scaffold/frontends/default/views/
_update_form.html.erb:40
vendor/plugins/active_scaffold/frontends/default/views/
on_update.js.rjs:14:in `block in
_run_rjs_vendor47plugins47active_scaffold47frontends47default47views47on_update46js46rjs'
vendor/plugins/active_scaffold/frontends/default/views/
on_update.js.rjs:1:in
`_run_rjs_vendor47plugins47active_scaffold47frontends47default47views47on_update46js46rjs'
<internal:prelude>:8:in `synchronize'
thin (1.2.7) lib/thin/connection.rb:76:in `block in pre_process'
thin (1.2.7) lib/thin/connection.rb:74:in `catch'
thin (1.2.7) lib/thin/connection.rb:74:in `pre_process'
thin (1.2.7) lib/thin/connection.rb:57:in `process'
thin (1.2.7) lib/thin/connection.rb:42:in `receive_data'
eventmachine (0.12.10) lib/eventmachine.rb:256:in `run_machine'
eventmachine (0.12.10) lib/eventmachine.rb:256:in `run'
thin (1.2.7) lib/thin/backends/base.rb:57:in `start'
thin (1.2.7) lib/thin/server.rb:156:in `start'
Rendered rescues/_trace (83.3ms)
Rendered rescues/_request_and_response (1.2ms)
Rendering rescues/layout (internal_server_error)
Thanks in advance.
On Apr 16, 6:31 am, vhochstein <[email protected]> wrote:
> Hi,
>
> can you please provide a complete call stack?
>
> --
> Volker
>
> On 14 Apr., 06:42, Bernardo <[email protected]> wrote:
>
>
>
>
>
>
>
> > Hi,
>
> > I have a model with validations like the one below:
> > validates_presence_of :field, :message => "Should not be blank"
>
> > When i submit a form leaving the field blank, i get the following
> > error:
>
> > ActionView::TemplateError (undefined method `content_tag' for
> > I18n:Module) on line #40 of vendor/plugins/active_scaffold/frontends/
> > default/views/_update_form.html.erb:
> > 37: <div id="<%= element_messages_id(:action => :update) %>"
> > class="messages-container">
> > 38: <% if request.xhr? -%>
> > 39: <%= error_messages_for :record, :object_name =>
> > @record.class.human_name.downcase %>
> > 40:
> > 41: <% else -%>
> > 42: <%= render :partial => 'form_messages' %>
> > 43: <% end -%>
>
> > Could someone help me? I'm out of ideas.
>
> > Thanks,
> > Bernardo
--
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.