Why does error_messages_for take string as param?

Hi,

I wonder why error_messages_for take strings as params instead of
instance variables.

error_messages_for ‘user’
instead of
error_messages_for @user

‘user’ is translated into @user eventually.
If so, who not take the instance variables directly?
Is there any reason for that?

Thanks in advance.

Sam

Take a look at this patch http://dev.rubyonrails.org/ticket/9699

Pablo C. wrote:

Take a look at this patch http://dev.rubyonrails.org/ticket/9699

Thanks for the info.
So now the method definition is officially changed?

Sam

On 4 Oct 2007, at 16:33, Sam K. wrote:

Pablo C. wrote:

Take a look at this patch http://dev.rubyonrails.org/ticket/9699

Thanks for the info.
So now the method definition is officially changed?

Nope - I submitted that patch, but it hasn’t yet been committed.

Fred