similar to: How can I use option --bare in Rails 3.1 for CoffeeScript?

Displaying 20 results from an estimated 200 matches similar to: "How can I use option --bare in Rails 3.1 for CoffeeScript?"

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(); $(document).ready(function() {
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
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 Sep 20
7
jQueryUI autocomplete (Rails 3.1): can't get source as url to work
Hey, I''m able to duplicate everything in Ryan Bates'' screencast on jQueryUI autocomplete (#102<http://railscasts.com/episodes/102-auto-complete-association-revised>), except for the piece that calls the server for completion data. Here is my view html: <input data-autocomplete-source="/searches" id="search-markets"
2010 Apr 27
2
Histogram not plotting correct breaks
Hi, I'm using the hist function to plot the frequency of 21 variables, but it keeps starting the x-axis from 0 and adding variables 1 and 2 together (all other vairables have the correct frequencies). I suspect it adds 1 and 2 together so that 0 can fit in with demarcations at intervals of 5. Using "xlim=c(1,21)" to specify that i don't want to include 0 and using the
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...
2009 May 09
1
"Overloading" some non-dispatched S3 methods for new classes
Hello, I am building a package that creates a new kind of object not unlike a dataframe. However, it is not an extension of a dataframe, as the data themselves reside elsewhere. It only contains "metadata". I would like to be able to retrieve data from my objects such as the number of rows, the number of columns, the colnames, etc. I --quite naively-- thought that ncol, nrow,
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 =
2005 Aug 30
1
loglinear model selection
Hi R-masters! I have a problem and need your help. I have 9 discrete variables with 2 levels each. In exploratory analisys I generate one matrix with chi-square for tables with 2 ariables each with this script setwd("F:/") dados<-read.csv("log.csv")[,2:10] dados.x<-matrix(NA,ncol=9,nrow=9) for(i in 1:8){ for(j in (i+1):9){ tab<-table(dados[,i],dados[,j])
2006 Feb 10
13
Element.observe () binding
Hey all, I working on a project, but I am not sure I can do what I want to do. The following works beautifully: Event.observe(el, ''click'', function () { this.className += " myClass"; return false; }); I have also tried doing this: this.varname = ''test''; Event.observe(el, ''click'', function () { alert (this.varname); }.bind
2011 May 06
2
Rails 3.1(beta1) + SASS + variables
Hello all, in Rails 3.1, 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
2012 May 07
1
Sprockets, JST, Eco and escaping
While it was a good move from Rails part to escape ERB <%= %> tags by default, it doesn''t seem to happen to Sprockets as well. The strange bit is that according to 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
2004 Jul 13
1
MLE, precision
Hi, everyone I am trying to estimate 3 parameters for my survival function. It's very complicated. The negative loglikelihood function is: l<- function(m1,m2,b) -sum( d*( log(m1) + log(m2) + log(1- exp(-(b + m2)*t)) ) + (m1/b - d)*log(m2 + b*exp(-(b + m2)*t) ) + m1*t - m1/b*log(b+m2) ) here d and t are given, "sum" means sum over these two vairables. the parameters
2012 May 13
4
[JOB] 90 Seconds seeks Ruby on Rails Developer
*90 Seconds seeks Ruby on Rails Developer* [the following was cross-posted to various mailing lists in New Zealand and the United Kingdom - sorry if you got it more than once] 90 Seconds is a video production company which started in New Zealand, and has since expanded to Australia and the United Kingdom. You can view who we are and what we do at http://90seconds.tv 90 Seconds have developed a
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
2006 May 04
5
How to insert styles with Insertion
Hi, I''m having difficulty using Prototype''s Insertion method to insert styles into a document node. Code like this seems to fail: new Insertion.Top(widgets[i], ''<style type="text/css"></style>''); When I inspect the DOM, the style is nowhere to be found. Any ideas on how to get this to work? Thank you, Jeff Rankin Human Factors 544-4333
2016 Jan 14
3
Aligning Long Long Vairables
Hi, I'm trying to align long long variable on a 4 byte boundary. I tried to change to clang frontend as follow: LongLongAlign = 32 ; LongLongWidth = 64; The asm output is still 8 bytes, when I declare a long long global array: .align 8 How can I change the alignment from 8 byte to 4 byte for long long variables? Do I need to write an ASMprinter class or change something in my backend?
2012 Aug 18
4
[LLVMdev] Greetings & Javascript -> LLVM...
I have a concept for which I'm conducting an initial analysis. The broader idea is to create an LLVM, JIT based runtime that would create a platform amenable to scripting languages, but do so while enforcing an optional sandbox environment when dictated by security concerns (browsers, user preferences). With this approach, the community would gain language independence for browsers, as well
2012 Jun 28
2
Best practice on Javascript and rails
Hi, I get constantly nervy whenever trying to implement any javascript / jquery in rails, basically because I''m not sure where to put things in the project! I know the people at rails have thought long and hard about how to best structure an app, so I''d like to learn the correct way. I''m using rails 3.2, ruby 1.9.3 ///////////// 1st situation - using a gem to include
2006 Jun 27
2
Bare naked server
Thanks, Zed, for mongrel :!) I''ve been on TextDrive for some time running my sites behind apache w/lighttpd. Once it got running it was cool enough. When it ran. And there was still the webmin dance and all. So I decided to set things up on my little dedicated redhat server - since I''d had so much success locally w/mongrel. Fast. Simple. It has been great and I managed to move