On Feb 16, 8:29 pm, "S. Widmann" <[email protected]> wrote: > Hi, > > I have some code like this: > <% @events.each do |event| %> > > But I get a deprecation warning: DEPRECATION WARNING: style block helpers > are deprecated. Please use . > > When I use <%= @events.each do |event| %>, there is some unwanted output, > that is being generated by @events.each. What do I have to do, to get it > working correctly and get no deprecation warning?
<% @events.each do |event| %> should be fine. Are you sure there isn't something else on the page generating the deprecation warning? Fred > > Regards > sewid -- 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

