I googled for a long time, but didn\'t find full answer for my problem. In my app I use inherited_resources. So, I want to override redirect after succefull creation of Comment object, so I write:
I\'m using auto_complete plugin: https://github.com/crowdint/rails3-jquery-autocomplete I have installed the gem and added require line in my manifest file as instructed:
I am assuming that the tests are loading slower because of the asset pipeline. I am wondering if there is 开发者_运维知识库some sort of gem, or magical spell that I can use to make the tests load fast
Putting this code in $(\'#hello\').click -> alert \'hello\' in posts.js.coffee in vanilla Rails 3.1 app does not work.The javascript is compiled and loaded before the page so the fun开发者_如何学
In CSS files, you can get the proper name of an image asset (with the fingerprint) by using: background-image: url(image-url(\"rails.png\"))开发者_高级运维