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? 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Feb 16, 8:29 pm, "S. Widmann" <sebastian.widm...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org 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.
Hi, I''m pretty sure. The hole code is: https://gist.github.com/831041 The deprecation warning is: DEPRECATION WARNING: style block helpers are deprecated. Please use . (called from _app_views_events_duplicates_show_js_erb___2237124407041796622_2181332520__676939742015288370 at /sites/sampleapp/app/views/events/duplicates/show.js.erb:4) 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
The depracated warning is caused by your url_for I would guess. Can''t test it because my development machine crashed yesterday Top posted from android Am 17.02.2011 06:30 schrieb "S. Widmann" <sebastian.widmann-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>:> Hi, > > I''m pretty sure. The hole code is: https://gist.github.com/831041 > > The deprecation warning is: > DEPRECATION WARNING: style block helpers are deprecated. Please use . > (called from >_app_views_events_duplicates_show_js_erb___2237124407041796622_2181332520__676939742015288370> at /sites/sampleapp/app/views/events/duplicates/show.js.erb:4) > > 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email torubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org> For more options, visit this group athttp://groups.google.com/group/rubyonrails-talk?hl=en.>-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
What would be the correct url_for syntax? 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Feb 17, 5:30 am, "S. Widmann" <sebastian.widm...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi, > > I''m pretty sure. The hole code is:https://gist.github.com/831041 > > The deprecation warning is: > DEPRECATION WARNING: style block helpers are deprecated. Please use . > (called from > _app_views_events_duplicates_show_js_erb___2237124407041796622_2181332520__ 676939742015288370 > at /sites/sampleapp/app/views/events/duplicates/show.js.erb:4) >Is this definitely the right file? The warning mentions a js.erb file and then file you''ve posted looks like just regular erb. 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org 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.
Hi, yes, it''s definitely the right file. It''s a js-request, that uses the returned code to fill a div. 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.