I have a very simple application. I''ve done all my models using scaffold and they have their own js.coffee file under assets. Application.js is: //= require jquery //= require jquery_ujs //= require_tree . When I run the application the error is: missing name after . operator (in /home/user/projects/myapp/app/assets/javascripts/documents.js.coffee) document.js.coffee is: # Place all the behaviors and hooks related to the matching controller here. # All this logic will automatically be available in application.js. # You can use CoffeeScript in this file: jashkenas.github.com/coffee-script like all others js.coffee files. If I delete documents.js.coffee I don''t have the error but I don''t undestand what''s the problem in documents.js.coffee. -- 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, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at groups.google.com/group/rubyonrails-talk?hl=en.
On 9 November 2011 11:56, Mauro <mrsanna1-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I have a very simple application. > I''ve done all my models using scaffold and they have their own > js.coffee file under assets. > Application.js is: > > //= require jquery > //= require jquery_ujs > //= require_tree . > > When I run the application the error is: > > missing name after . operator > (in /home/user/projects/myapp/app/assets/javascripts/documents.js.coffee) > > document.js.coffee is: > > # Place all the behaviors and hooks related to the matching controller here. > # All this logic will automatically be available in application.js. > # You can use CoffeeScript in this file: > jashkenas.github.com/coffee-script > > like all others js.coffee files. > > If I delete documents.js.coffee I don''t have the error but I don''t > undestand what''s the problem in documents.js.coffee. >I think the problem is in coffee-script-source 1.1.3, because I have had the problem after a bundle update, in other applications I have coffee-script-source 1.1.2 and I don''t have the problem. -- 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, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at groups.google.com/group/rubyonrails-talk?hl=en.
On 9 November 2011 10:56, Mauro <mrsanna1-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I have a very simple application. > I''ve done all my models using scaffold and they have their own > js.coffee file under assets. > Application.js is: > > //= require jquery > //= require jquery_ujs > //= require_tree . > > When I run the application the error is: > > missing name after . operator > (in /home/user/projects/myapp/app/assets/javascripts/documents.js.coffee)That says the error is in documents.js (plural)> > document.js.coffee is:But that is document singular. Do you have two files or just a typo?> > # Place all the behaviors and hooks related to the matching controller here. > # All this logic will automatically be available in application.js. > # You can use CoffeeScript in this file: > jashkenas.github.com/coffee-scriptI presume the new line before http is just the email folding? What happens if you empty the file and then, if ok, add it back to find what is causing the error. Colin -- 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, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at groups.google.com/group/rubyonrails-talk?hl=en.
On 9 November 2011 13:18, Colin Law <clanlaw-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote:> On 9 November 2011 10:56, Mauro <mrsanna1-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> I have a very simple application. >> I''ve done all my models using scaffold and they have their own >> js.coffee file under assets. >> Application.js is: >> >> //= require jquery >> //= require jquery_ujs >> //= require_tree . >> >> When I run the application the error is: >> >> missing name after . operator >> (in /home/user/projects/myapp/app/assets/javascripts/documents.js.coffee) > > That says the error is in documents.js (plural) > >> >> document.js.coffee is: > > But that is document singular. Do you have two files or just a typo?Sorry it''s a typo.>> # Place all the behaviors and hooks related to the matching controller here. >> # All this logic will automatically be available in application.js. >> # You can use CoffeeScript in this file: >> jashkenas.github.com/coffee-script > > I presume the new line before http is just the mail folding? What > happens if you empty the file and then, if ok, add it back to find > what is causing the error.If I empty the file the error is the same, but the very strange thing is that if I delete documents.js.coffee and I add e new file, say exemple.js.coffee, the problem is the same. I have 4 js.coffee file but it seems that if I add the fifth it goes in error. -- 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, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at groups.google.com/group/rubyonrails-talk?hl=en.
On 9 November 2011 13:38, Mauro <mrsanna1-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On 9 November 2011 13:18, Colin Law <clanlaw-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote: >> On 9 November 2011 10:56, Mauro <mrsanna1-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >>> I have a very simple application. >>> I''ve done all my models using scaffold and they have their own >>> js.coffee file under assets. >>> Application.js is: >>> >>> //= require jquery >>> //= require jquery_ujs >>> //= require_tree . >>> >>> When I run the application the error is: >>> >>> missing name after . operator >>> (in /home/user/projects/myapp/app/assets/javascripts/documents.js.coffee) >> >> That says the error is in documents.js (plural) >> >>> >>> document.js.coffee is: >> >> But that is document singular. Do you have two files or just a typo? > > > Sorry it''s a typo. > >>> # Place all the behaviors and hooks related to the matching controller here. >>> # All this logic will automatically be available in application.js. >>> # You can use CoffeeScript in this file: >>> jashkenas.github.com/coffee-script >> >> I presume the new line before http is just the mail folding? What >> happens if you empty the file and then, if ok, add it back to find >> what is causing the error. > > If I empty the file the error is the same, but the very strange thing > is that if I delete documents.js.coffee and I add e new file, say > exemple.js.coffee, the problem is the same. > I have 4 js.coffee file but it seems that if I add the fifth it goes in error. >I''m the only that have this problem? Then perhaps is related to jruby and not ruby. -- 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, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at groups.google.com/group/rubyonrails-talk?hl=en.