Hi
It's not my plugin, it's when choosing another locale.
Here is the relevant part of the error:
Processing PostsController#create (for 192.168.1.13 at 2008-08-11
00:27:28) [POST]
Session ID:
BAh7CDoLbG9jYWxlIgdubDoMY3NyZl9pZCIlNDhjYzhmMjk3OGEwMDg5NTc5ODI2OGQ3ZTlmYWQyN2UiCmZsYXNoSUM6J0FjdGlvbkNvbnRyb2xsZXI6OkZsYXNoOjpGbGFzaEhhc2h7AAY6CkB1c2VkewA=--5cc25931b3b982152692b9a028a168570d384539
Parameters: {"commit"=>"Create", "post"=>{"title"=>""},
"authenticity_token"=>"021d928e2de55a18ffd94cd7bc22f41d984ee69b",
"action"=>"create", "controller"=>"posts"}
Locale selected: nl
Cache miss: locales/nl ({:force=>true})
Cache write (will save 0.00025): locales/nl
Rendering template within layouts/posts
Rendering posts/new
Compiling template _run_erb_47app47views47posts47new46html46erb
ActionView::TemplateError (can't convert Array into String) on line #4
of app/views//new.html.erb:
1: <h1>New post</h1>
2:
3: <% form_for(@post) do |f| %>
4: <%= f.error_messages %>
5:
6: <p>
7: <%= f.label :title %><br />
vendor/rails/activerecord/lib/active_record/validations.rb:171:in `
+'
vendor/rails/activerecord/lib/active_record/validations.rb:171:in
`full_messages'
vendor/rails/activerecord/lib/active_record/validations.rb:163:in
`each'
vendor/rails/activerecord/lib/active_record/validations.rb:163:in
`full_messages'
vendor/rails/activerecord/lib/active_record/validations.rb:162:in
`each_key'
vendor/rails/activerecord/lib/active_record/validations.rb:162:in
`full_messages'
vendor/rails/actionpack/lib/action_view/helpers/
active_record_helper.rb:201:in `error_messages_for'
vendor/rails/activesupport/lib/active_support/core_ext/
enumerable.rb:61:in `map'
vendor/rails/activesupport/lib/active_support/core_ext/
enumerable.rb:61:in `sum'
vendor/rails/actionpack/lib/action_view/helpers/
active_record_helper.rb:201:in `error_messages_for'
vendor/rails/activesupport/lib/active_support/core_ext/object/
misc.rb:48:in `with_options'
vendor/rails/actionpack/lib/action_view/helpers/
active_record_helper.rb:192:in `error_messages_for'
vendor/rails/actionpack/lib/action_view/helpers/form_helper.rb:
790:in `error_messages'
app/views/posts/new.html.erb:4
On Aug 10, 6:25 pm, Sven Fuchs <
svenfu...@artweb-design.de> wrote:
> Hey,
>
> I can't reproduce the issues you guys are having with
> error_messages_for. Can you provide me with some hints how to
> reproduce this?
>
> What I've done:
>
> rails rails-i18n
> cd rails-i18n/
> ln -s ~/Server/projects/i18n/rails ~/Server/projects/i18n/rails-i18n/
> vendor/rails
> script/generate scaffold user
> rake db:migrate
> mongrel_rails start
>
> In the user model I've added:
>
> class User < ActiveRecord::Base
> validates_presence_of :name
> end
>
> Then when I went tohttp://localhost:3000/users/newand clicked
> > sven fuchs
svenfu...@artweb-design.de
> sven fuchs
svenfu...@artweb-design.de