search for: coffeescript

Displaying 20 results from an estimated 28 matches for "coffeescript".

2011 May 23
3
How can I use option --bare in Rails 3.1 for CoffeeScript?
Someone know how can I use this option in Rails 3.1? Now CoffeScript puts a function ".call(this)" on each file, but I want to remove this. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this
2011 Jul 23
6
Rails 3.1 CoffeeScript not working
I convert my old JS files into CoffeeScript, In my public controller I used this functions $(''#events a'').lightBox() $(document).ready -> $("#slider").easySlider auto: true, continuous: true they load inside application.js like this (function() { $(''#events a'').lightBox(); $...
2014 Apr 23
0
Select fields, Coffeescript and Cocoon
Hello, I have select field which after a choice happened, feeds another select field. Using the gem Cocoon to duplicate this set of select fields. My problem now is to find a solution that the coffee script supplies values for each select field-set separately. My code: form <%= render 'usergroup_fields', :f => usergroup %> <%= link_to_add_association "Add
2012 Sep 20
7
jQueryUI autocomplete (Rails 3.1): can't get source as url to work
...pletion data. Here is my view html: <input data-autocomplete-source="/searches" id="search-markets" name="search-markets" placeholder="market keyword and/or location" size="50" type="text" autocomplete="off"> Now, this coffeescript works... $(''#search-markets'').autocomplete source: [''foo'', ''food'', ''four''] ...whereas, this coffeescript trying to tap the server... $(''#search-markets'').autocomplete -> source: $(''#search-marke...
2011 May 28
0
Coffeebeans - smart to use?
Not sure if inline coffeescript is smart. Has just learned why inline javascript not is smart, so I don''t understand why it now should be a good thing with coffeescript. On the other hand: I find the ability to use it when responding to JavaScript (JS) requests very nice, so I wonder why this is not an standard option i...
2011 Jun 04
2
Weird paramterized issue
Im using a parameterized class in my site.pp: class development($user) { class{"basenode": user => $user} class{"nodejs": user => $user} include "coffeescript" include "ruby" } This class defines nodejs class that epects a user as input: class nodejs($user) { class {"nodejs::npm": user => $user} $node_ver = "v0.4.7" $node_tar = "node-$node_ver.tar.gz" # ... } The first time I run this all w...
2011 Dec 05
9
jquery - word is not defined
Just starting out with a beginner book on jquery and the very first thing I am trying fails (has to be me) Rails 3.1 - other jquery things working including a poor example of drag & drop that is my ultimate target here but just simply trying to get every alternating row in a table to have a different css class So I''m using... app/assets/javascripts/people.js.coffee and put in...
2011 May 06
2
Rails 3.1(beta1) + SASS + variables
...is it possible to define global SASS variables (and mixins) that are shared across all *.css.scss files? I am able to define SASS variables, yet they seemed to be scoped only within each individual file … On a side note -- is there a way to pass variables from my Rails app to the SASS + JS (or CoffeeScript) files? Thanks for your help. Best, Tomas -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, s...
2012 May 07
1
Sprockets, JST, Eco and escaping
...Sprockets documentation, it would be just a matter of naming your template as .jst.eco to enable Eco: https://github.com/sstephenson/sprockets#javascript-templating-with-ejs-and-eco Then, extracted from Eco documentation: https://github.com/sstephenson/eco <%= expression %>: Evaluate a CoffeeScript expression, *escape* its return value, and print it. It means that by default it should escape "expression". So why isn''t escaping happening by default on Rails JST eco templates? I know about templating alternatives like Handlebars or Knockout, but I actually want to be abl...
2011 Jun 20
5
Helper methods in coffescript files
Hi, I was wondering if there is a way to make helper methods available in my .coffe files, Im trying to generate a graph from some userdata with a javascript library, and with the new asset pipeline I can append .erb so its users.js.coffe.erb which works just great, but I need some way to get the current_user helper method.. help ? -- You received this message because you are subscribed to the
2012 Aug 19
0
[LLVMdev] Greetings & Javascript -> LLVM...
19.08.2012, 00:39, "Julian Klappenbach" <jklappenbach at gmail.com>: >With this approach, the community would gain language independence for browsers Browser community is strongly opposed to the idea of having multiple web-faced languages > The first language I'd like to tackle is ECMAScript / Javascript. You can tale a look at llvm-lua project. However, speed of JIT
2013 Feb 19
0
knitr version 1.1
...y) 3. you can publish blog posts from R to WordPress using R Markdown and the knit2wp() function (http://yihui.name/en/2013/02/publishing-from-r-knitr-to-wordpress/) 4. Rcpp is supported in code chunks (see http://gallery.rcpp.org for an application), and more languages have been added (Perl, Bash, CoffeeScript, ... http://yihui.name/knitr/demo/engines/) 5. A Shiny notebook was added as a demo (http://glimmer.rstudio.com/yihui/knitr) I thank the amazing R community; in particular, I thank all contributors who sent me over 50 pull requests (https://github.com/yihui/knitr/contributors) and users who report...
2013 Feb 19
0
knitr version 1.1
...y) 3. you can publish blog posts from R to WordPress using R Markdown and the knit2wp() function (http://yihui.name/en/2013/02/publishing-from-r-knitr-to-wordpress/) 4. Rcpp is supported in code chunks (see http://gallery.rcpp.org for an application), and more languages have been added (Perl, Bash, CoffeeScript, ... http://yihui.name/knitr/demo/engines/) 5. A Shiny notebook was added as a demo (http://glimmer.rstudio.com/yihui/knitr) I thank the amazing R community; in particular, I thank all contributors who sent me over 50 pull requests (https://github.com/yihui/knitr/contributors) and users who report...
2011 Aug 02
1
Rails 3.1 jasmine testing
Anybody know what to put in the jasmine.yml to desginate where jasmine should look for the files? I am using jasmine-headless-webkit so I can write CoffeeScript (and run the tests in the cli), and my test work fine written in it, though when I put app/assets/javascripts/**/*.js.coffee in the jasmine.yml, I keep getting ReferenceErrors. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. T...
2011 Aug 11
0
Call for speakers DevDays 2011 Sydney
...igh-bandwidth, fire hose tutorial on at least ten interesting concepts. You can read more about it here: http://blog.stackoverflow.com/2011/06/devdays-is-back/ We have already picked quite a few interesting talks but have a few slots left open! In particular we are looking for two 1 hour talks on CoffeeScript and HTML5 which are a must for the event. We could also shuffle stuff around a bit and allow for another topic (perhaps GIT or Rails) Additionally there are a bunch of spots of 5 minute lightning talks that are still open. If you feel comfortable talking in front of a few hundred people and think...
2011 Aug 21
0
creating rubygem from assets
I have a few coffeescript and sass files. I want to create a rubygem so I can easily use these files in every project. How can I do this? Where I must put these files in my gem folder? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To view this discussi...
2012 Apr 09
0
Autocomplete text-field version of dynamic select menu?
...> ''btn'' %> </div> </fieldset> <% end %> and in styles.rb (model): belongs_to :brand def brand_name brand.try(:name) end def brand_name=(name) self.brand = Brand.find_or_create_by_name(name) if name.present? end and in styles.js.coffeescript: jQuery -> $(''#style_brand_name'').autocomplete source: $(''#style_brand_name'').data(''autocomplete-source'') -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to...
2012 Jun 19
0
passing data
Hello. I need some help with this: I have a link to open a modal window: <%= link_to instruct.instruction.name, "#myModal", :data => {:toggle => "modal", :id => instruct.id}, :class=> "openModal"%> and a coffeescript $(".modal-body #result").html $(this).data("id") Shows me the result in the html: <span id="result"></span> So far so good. But what I want is to give the value of the id to this Instruction.find( value in here) How? Thanks for advise -- You received...
2012 Oct 24
0
RoR Developer (Full Time, Salary)
...king software in the fast-growing medical marijuana industry. Although it would help, you do not need to be involved in the medical marijuana industry to apply. We work out of an office near the Denver Tech Center (Hampden & Yosemite). Day to day, we use Rails 3.2, Ruby 1.9.3/1.9.2, JavaScript (CoffeeScript), MySQL, and Git (Github). Technical Requirements * Ruby on Rails: It''s a RoR job, so please be proficient in Ruby and Rails. * HTML/CSS: Your HTML and CSS skills should be good. * Javascript/jQuery: You should also be proficient in JavaScript & jQuery. * MySQL/DataMapper: We use Data...
2013 Jan 22
1
rails datatables refresh javascript
Hi I followed a railscast episode and got datatables up and running, beautifully along with the nice jquery-ui as in the front page. The main issue I''m having though is that I suck at CoffeeScript/JS ~_~ I''m trying get the datatables to reload every 1 second but I don’t see any request coming into my webserver for refreshes and hence, no refreshes on the web page itself. Here''s my code: app/assets/javascripts/comments.js.coffee [code] jQuery -> $(''#com...