I am trying to dynamically include a javascript file based on a configuration option however I keep getting this error: Error compiling asset application.js: ArgumentError: wrong number of arguments (3 for 1) (in c:/Users/Dieter/Documents/event_calendar/vendor/assets/javascripts/event_calendar.js.erb:1) when trying to run this code: //<% require ''event_calendar'' %> //= require <%= EventCalendar.config.javascript %>-calendar I am currently using Rails 3.1.0.rc4 Dieter Lunn http://ubiety.ca -- 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.