Fixed, see below. Further testing showed that controller and action were set as expected. Adding this to _scripts_and_styles.haml:
=params[:controller] =params[:action] ..generated this in the hml: photos new ..yet this evaluated false: - if current_page?(controller_name == 'photos' && action_name == 'new') Very strange. My fix was to add this to photos_controller.new @include_swfupload = true ..and change the test in _scripts_and_styles to this: - if @include_swfupload I'm good to go, but any insight on the bug would be appreciated. On Jul 8, 7:36 pm, angrysponge <[email protected]> wrote: > When trying to upload multiple photos into a photo album, on page load > this js error is thrown: > > CommunityEngine.SwfUpload is not a constructor > > It appears that swfupload.js and uploader.js are not being loaded. > Looking at _scripts_and_styles.haml: > > - if (controller_name == 'photos' && action_name == 'new') > = javascript_include_tag 'swfupload', :plugin => "community_engine" > = javascript_include_tag 'uploader', :plugin => "community_engine" > > ..which match the controller and action shown in the logs: > > Processing PhotosController#new > > Any ideas fine peoples? > Mike -- You received this message because you are subscribed to the Google Groups "CommunityEngine" 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/communityengine?hl=en.
