similar to: Helper methods in coffescript files

Displaying 20 results from an estimated 100 matches similar to: "Helper methods in coffescript files"

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(); $(document).ready(function() {
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"
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 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 =
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
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
2007 Apr 15
2
agents and music on hold with autoanswer..
My colleague left our company, then I have to manage all our phones lines and asterisk: please, apologize me because I'm 'absolute beginner' about voip/asterisk!! Well... all seems work fine; we have some queues and some agents; the "music on hold" works fine when the agent press the hold button on the phone (thomson); the agents have the 'autoanwser' flag
2006 Aug 15
2
to_xml and underscores
hi, i am looking for a solution whereupon calling myEntityObject.to_xml does not convert my attributes containing underscores into hyphens. at the moment an attribute named "my_own_attribute" is converted into <my-own-attribute>. does anybody have an idea how to change that and have to_xml generate <my_own_attribute> thanks ciao robertj -- Posted via
2005 Jul 06
3
sendmail + plain auth
I'm probably missing something obvious, but I can get sendmail to give me AUTH PLAIN and LOGIN options. What I have is fairly standard configuration. The relevant part of sendmail.mc looks something like this: define(`confCACERT_PATH',`/etc/ssl/certs') define(`confCACERT',`/etc/ssl/ca-bundle.crt') define(`confSERVER_CERT',`/etc/ssl/smtp.crt')
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
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 May 11
14
What is the point of using :format in routes?
Today I had a strange behavior that made me suspect of jQuery at first, but then it happened that I''ve faced two gotchas, one from CoffeeScript and one from Rails itself. I have something like this: routes.rb post ''/fields/:id.:format'' => ''fields#show'', as: :field, constraints: {id: /\d+/} post ''/fields/remove/:id''
2011 Nov 28
9
CSS Problem.
Hi Everyone, I was going through the Rails tutorial from here: http://ruby.railstutorial.org/chapters/filling-in-the-layout#top I was getting this exception on my WebRick server: Started GET "/assets/blueprint/print.css" for 127.0.0.1 at 2011-11-28 14:43:00 +0530 Served asset /blueprint/print.css - 404 Not Found (0ms) ActionController::RoutingError (No route matches [GET]
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 in Rails 3.1.rc1? Will this come i future releases? Will it therefore
2004 Jul 14
5
ACD Issues
Alright, folks. I just deployed * into full production at my office. We have around 50 7905's, 5 7940's, and a handful of soft clients. We run a call center with around 15 agents. I also have a queue set up for the receptionists so that they don't get bombarded with calls. Everything seems to be working with a very few minor glitches. I firmly believe that the few problems we are
2006 Jun 13
1
reloading modules
hi, can anybody tell me how i can reload modules automatically that are living in my ../lib directory? for the moment i need to shut down rails and restart to see any changes. thanks ciao robertj -- Posted via http://www.ruby-forum.com/.
2005 Jan 18
1
QoS tagging - can Asterisk do this, if not, what do you recommend?
> -----Original Message----- > From: Dale [mailto:dale-list@lightwavetech.com] > Sent: Tuesday, January 18, 2005 1:45 PM > To: Asterisk Users Mailing List - Non-Commercial Discussion > Subject: [Asterisk-Users] QoS tagging - can Asterisk do this, > if not,what do you recommend? > > So my question is, does Asterisk offer the > ability to mark the voice data with the