RailsCasts Pro episodes are now free!

Learn more or hide this

Nick's Profile

GitHub User: adiakritos

Comments by Nick

Avatar

My js replaces the elements on the dom with the correct code, however the new image doesn't render on the page. The file IS in the correct directory, and the paths match. When I reload the page the image will render.

Why is this happening and how can I fix it?

Thanks!

Avatar

I keep getting this error. There is no unicorn.sock file in that dir so I'm guessing that it's just not getting created?

 "connect() to unix:/tmp/unicorn.sock failed (2: No such file or directory) while connecting to upstream"

The answer for me was to add

listen "/tmp/unicorn.sock"

to my unicorn.rb file.

Avatar

at 8:07.. How would I return more than just the name of the object?

I need to supply several other attributes as well although I'm having a hard time finding a simple explanation for using .map to return other attributes as well.