RailsCasts Pro episodes are now free!

Learn more or hide this

Lionel E. Ramos's Profile

GitHub User: ltrainpr

Site: http://www.brandfolder.com

Comments by Lionel E. Ramos

Avatar

Receiving console error:

Error while processing route: entries undefined is not a function TypeError: undefined is not a function at RandomRaffle.EntriesRoute.Ember.Route.extend.setupController

and

undefined is not a function TypeError: undefined is not a function
at RandomRaffle.EntriesRoute.Ember.Route.extend.setupController

when I add RandomRaffle.Entry.find() to my routes. Any ideas?

Avatar

I was able to fix the ExecJS error. Had to do with having spaces instead of tabs in my coffeescript function.

Avatar

Adding:

coffeescript
$('#new_entry')[0].reset()

into my entries_index.js.coffee file under createEntry causes an

ExecJS::RuntimeError in Main#index
SyntaxError: unexpected CALL_START
  (in /Users/lionelramos/Documents/raffler/app/assets/javascripts/views/entries/entries_index.js.coffee)

My log has this:

coffescript
ActionView::Template::Error (SyntaxError: unexpected JS
  (in /Users/lionelramos/Documents/raffler/app/assets/javascripts/views/entries/entries_index.js.coffee)):

Any thoughts?