lundi 17 février 2020

How to define coffeescript method in haml file under :coffeescript tag?

I am working with ruby on rail and CoffeeScript I need to define and call a function in haml file under :coffeescript tag

I tried with following code but it generates error of undefined tabsOnLoadMethod

:coffeescript
  $ ->
    tabsOnLoadMethod ->
      alert 'hello team'

I called the method like tabsOnLoadMethod();. so where is going wrong please tell me.

error: ReferenceError: tabsOnLoadMethod is not defined

1 commentaire:

  1. If you're looking to lose fat then you certainly have to jump on this brand new custom keto meal plan.

    To create this keto diet service, certified nutritionists, fitness couches, and chefs have joined together to develop keto meal plans that are efficient, suitable, price-efficient, and enjoyable.

    From their grand opening in 2019, 1000's of people have already completely transformed their figure and well-being with the benefits a professional keto meal plan can give.

    Speaking of benefits: clicking this link, you'll discover 8 scientifically-tested ones offered by the keto meal plan.

    RépondreSupprimer