Ralph Shnelvar
2011-Dec-25 21:10 UTC
player undedfined. want video_player in jw_player_helper
I am converting my 2.3.8 Rails app to 3.1.1 I have much of it working. When I attempted to play a video and I found out that the function "player" is undefined. The (latest?) version of vendor\bundle\ruby\1.9.1\gems\jw_player_helper-0.0.1\lib\jw_player_helper\helper.rb uses def video_player(flashvars, attributes = {} , params = {}) instead of vendor\plugins\jw-playr-hlpr\lib\jw_player_helper.rb def player(player_options = {}, flash_options = {}) My code calls player from 20-or-so places. What''s the RoR way of fixing this? Should I modify all 20 calls? Should I wrap the player method? If I provide a delegate by using a Wrapper Design Pattern, where in the project tree should I put it? -- Posted via http://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-/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.