RailsCasts Pro episodes are now free!

Learn more or hide this

Luke Holder's Profile

GitHub User: lukeholder

Comments by Luke Holder

Avatar

Can someone tell me how this helps? Isnt the controller being called on each request where the heavy lifting is done anyway? (DB calls etc)

Avatar

really bummed ryan didn't show the best way to handle events bound to new elements added to the dom. Although it seems simple to add a function the better and more generally accepted best practise would be to use the .on event Delegation. example:

javascript
$(function() {
  $("body").on("click", "p", function(){
   // do the stuff
    });
});
Avatar

look into using wabler to bundle the rails project into a war file for java app server:

https://github.com/jruby/jruby/wiki/JRubyOnRails#wiki-War_File_Deployment

Avatar

look into using wabler to bundle the rails project into a war file for java app server:

https://github.com/jruby/jruby/wiki/JRubyOnRails#wiki-War_File_Deployment

Avatar

the asset pipeline makes everything so easy /s

Avatar

in rails 3.2.3 you need to run your dummy server with the

rails s

command from inside the tests/dummy folder, not at the root of the engine

docs:

http://edgeguides.rubyonrails.org/engines.html

Avatar

Just a suggestion to everyone here:

This tutorial is very much geared towards a particular way of using backbone on rails. (Understandable since this is a railscast)

I would suggest learning backbone yourself as a standalone html and js served out of public and communicating with your restful resources first, that way you can learn more about things like modularizing your app vs namespacing etc.

learn backbone, then backbone on rails.

Avatar

I still feel like testing is such a drag, How do I believe?

Avatar

This seems like it would really slow down my development speed.

Does your company require you to write tests first?