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@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.

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouprubyonrails-talk @
categoriesrubyonrails
postedDec 25, '11 at 9:10p
activeDec 25, '11 at 9:10p
posts1
users1
websiterubyonrails.org
irc#RubyOnRails

1 user in discussion

Ralph Shnelvar: 1 post

People

Translate

site design / logo © 2022 Grokbase