Questions tagged as 'coffeescript'

0
answers

Ruby on Rails 5 - CoffeeScript not working

I am struggling with the use of Javascript in Rails, specifically with CoffeeScript that does not load it into the application; in no internet tutorial I have seen clearly how to schedule events, I have only read that it is handled differently b...
asked by 28.05.2018 / 03:22
1
answer

My master detail does not work ruby on rails

Hi look, I gave an example what I should do, the photos are in this link link but it does not work I recharge the page every time I give it to add another one or if I am going to delete it, I always recharge the page thanks for the attention g...
asked by 25.08.2017 / 15:42
0
answers

Change attribute in link_to by a select

I have a select that a provider takes. <%= form_for @claim do |f| %> <%= f.select :provider_id, {}, {include_blank: "Seleccione opción"}, {id: "provider_selector_resend", style: "width:100%;"} %>    Then on the same page...
asked by 01.12.2016 / 15:53
1
answer

Print templates with ternary in coffeescript

How can I print ternary operators together with string templates using coffescript? If I execute the code as: peopleWithAgeDrink = (old)-> "drink "+"#{'old<14?'toddy':old<18?'coke':old<21?'beer':'whisky''}" I get the desi...
asked by 04.05.2016 / 02:46