Hello Evry Body.

I have some trouble with Fluo.render : There is an incompatibility (I don't 
know where, with some Refienery cms  library : 

I'm using Rails 3.2.6, ruby 1.9.3, refinerycms 2.0.5  and Ruote 2.30 ( :-) )

When I call a view with a Standard Controller  (ApplicationController) :

module Refinery
 module StudyPlans
   module Admin
     class StudyPlansController < ::ApplicationController 

def show 
  @study_plan = StudyPlan.find(params[:id]) 
      end
   end
end
end

The show view works perfectly (Fluo.render draw the process)

show.html.erb : 

<div id="fluo"></div>

<script>
var tree = <%= raw(@study_plan.definition_input) %>;
   Fluo.render('fluo', tree, { noOuterBorder: true });
</script>


When I change the base controller ApplicationController by the admin 
controller of Refenery (Refinery::AdminController) :

module Refinery
 module StudyPlans
   module Admin
     class StudyPlansController < ::Refinery::AdminController

etc …

The same code don't work anymore and javascript break at the instruction 
"Fluo.render".

I have no idea why … It's in the javascript. The rest of ruote works 
perfectly.

Thanks you for your help.

Best regards & salutations

Laurent

-- 
you received this message because you are subscribed to the "ruote users" group.
to post : send email to [email protected]
to unsubscribe : send email to [email protected]
more options : http://groups.google.com/group/openwferu-users?hl=en

Reply via email to