Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ember.md Posts array #44

Closed
gringocl opened this issue Apr 5, 2014 · 4 comments
Closed

ember.md Posts array #44

gringocl opened this issue Apr 5, 2014 · 4 comments

Comments

@gringocl
Copy link
Contributor

gringocl commented Apr 5, 2014

In app/assets/javascripts/models/post.js.coffee something with this code

Blorgh.Post = Ember.Object.extend({})

Blorgh.Post.reopenClass
  findAll: ->
    posts = Em.A()
    $.getJSON('/api/posts').then (data) ->
      $.each data.posts, (post) ->
        posts.pushObject(data)
    posts

is giving me an TypeError in Jquery

Uncaught TypeError: Cannot read property 'length' of undefined

@radar
Copy link
Owner

radar commented Apr 5, 2014

Could you please put the code for this app up on GitHub and give me a link?

On Sat, Apr 5, 2014 at 5:17 PM, Miles Starkenburg
notifications@github.com wrote:

In app/assets/javascripts/models/post.js.coffee something with this code

Blorgh.Post = Ember.Object.extend({})
Blorgh.Post.reopenClass
  findAll: ->
    posts = Em.A()
    $.getJSON('/api/posts').then (data) ->
      $.each data.posts, (post) ->
        posts.pushObject(data)
    posts

is giving me an TypeError in Jquery

Uncaught TypeError: Cannot read property 'length' of undefined

Reply to this email directly or view it on GitHub:
#44

@radar
Copy link
Owner

radar commented Apr 5, 2014

I think I just need to push a couple of things to blorgh actually...

On Sat, Apr 5, 2014 at 5:52 PM, Ryan Bigg radarlistener@gmail.com wrote:

Could you please put the code for this app up on GitHub and give me a link?
On Sat, Apr 5, 2014 at 5:17 PM, Miles Starkenburg
notifications@github.com wrote:

In app/assets/javascripts/models/post.js.coffee something with this code

Blorgh.Post = Ember.Object.extend({})
Blorgh.Post.reopenClass
  findAll: ->
    posts = Em.A()
    $.getJSON('/api/posts').then (data) ->
      $.each data.posts, (post) ->
        posts.pushObject(data)
    posts

is giving me an TypeError in Jquery

Uncaught TypeError: Cannot read property 'length' of undefined

Reply to this email directly or view it on GitHub:
#44

@gringocl
Copy link
Contributor Author

gringocl commented Apr 5, 2014

@radar
Copy link
Owner

radar commented Apr 5, 2014

Please try and update from blorgh again.

@radar radar closed this as completed Apr 6, 2014
radar pushed a commit that referenced this issue Jun 30, 2017
Update make-your-own-gem.md
radar pushed a commit that referenced this issue Jun 30, 2017
Changes from final touches on rubygems.org
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants