Ruby on Rails Friday, October 1, 2010

On Oct 1, 1:07 pm, Bob Mundane <li...@ruby-forum.com> wrote:
> But it produce
> Try favorite song
> Try favorite song
>
> I mean, the bloc is executed TWICE. The same code exercised under the
> rails console is executed only ONCE.
>
> Anybody have an idea of this strange phenomenom ?
>
You probably want <% for the first tag. Right now the call to i18n.t
is outputting text, and the call to with_options is also a <%= so will
output whatever the result of that evaluation is

Fred

> Thanks
> --
> Posted viahttp://www.ruby-forum.com/.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment