Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.
can't get coffee script to work in treebook web application using Sublime Text 2 under: "Build a simple Ruby on Rails application project"
I'm using Sublime Text 2 as my text editor but when I open the "statuses.js.coffee" file won't show up in the editor in the bottom right hand corner as a coffeescript which it did for Jim the instructor in the video. The reason the coffee script was being edited was to perform this action using coffee script.
$ -> $('.status').hover (event) -> $(this).toggleClass("hover")
I save this in the statuses.js.coffee file and refresh my "treebook" page and it doesn't show the hover working for the "edit" and "delete" tabs. If anyone could help me out I'd really appreciate it. Also I wanted to say that Team Treehouse is awesome! I look forward to learning more and hopefully one day I can become a web developer/designer.
Thanks for your time.
Any update on this ? I have a similar problem except that my code works at the first instance of loading the index page.
The over works and it shows the edit and delete option but when I create a status or am directed back to it I doesn't work then.
Nachiket Kumar3,590 Points
Do you have package control installed in Sublime Text? If so, you can install the CoffeeScript Plugin, and also tell ST to 'open all with current extension as' --> "CoffeeScript" (in bottom right corner). However I think this is only for syntax highlighting, and I suspect your issue is due to some other reason.