Hello again,

Just one precision : These problem don't have any relation with "ActiveRecord" 
: If you don't use any active record you have the same problem

Controller : 
class SomeController < ::ApplicationController

def show
end

end

view :

<div id="flo"></div>
<script>
var tree =
    [ 'define', { test0: null }, [
      [ 'concurrence', { count: 1 }, [
        [ 'alpha', {}, [] ],
        [ 'bravo', {}, [] ]
      ] ],
      [ 'charly', { task: "wash cups" }, [] ]
    ] ];
   Fluo.render('flua', tra);
</script>


works,

but

class SomeController < ::Refinery::AdminController

def show
end

end

doesn't. (It's not a problem of route, etc … the javascript script is execute 
and breaks at the call "Fluo.render"

Best regards,

Laurent


Le 5 sept. 2012 à 14:12, laurent <[email protected]> a écrit :

> 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

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