boblail.com
@boblail
http://boblail.com/tagged/tests
Run unit, functional, and integration tests without loading Rails three times! In Rails, you can run. Which run the tests in. Respectively. You can also run. Which runs all three. Runs all three one after another—I’ve always wondered why—so you pay the cost of loading the test suite (and Rails) three times. It’s not hard to run unit, functional, and integration tests all at once (although I had a couple of false starts). Here’s a. Task that does the trick:. As the Lead Developer of Emerging Products.
boblail.com
@boblail
http://boblail.com/tagged/CSS
Automatically Including Javascripts and Stylesheets. In more than one of my projects, I have javascript or stylesheet files with several hundred lines. Also, I rotate between several active projects and forget exactly where I put things. :( What I want to do is break these files into smaller ones by responsibility but be able to concatenate them for production to reduce requests. Rails has an excellent way of accomplishing the concatenation: the. Option that works for both. With it, you can write:. Def i...
boblail.com
@boblail
http://boblail.com/tagged/rails
Run unit, functional, and integration tests without loading Rails three times! In Rails, you can run. Which run the tests in. Respectively. You can also run. Which runs all three. Runs all three one after another—I’ve always wondered why—so you pay the cost of loading the test suite (and Rails) three times. It’s not hard to run unit, functional, and integration tests all at once (although I had a couple of false starts). Here’s a. Task that does the trick:. Option that works for both. Javascript include ...
boblail.com
How to read a project's dependencies directly from... - @boblail
http://boblail.com/post/31102005688/how-to-read-a-projects-dependencies-directly-from
How to read a project’s dependencies directly from git. I have a program that lists all of my company’s projects and various statistics about them. Between little APIs, background services, and large applications, we’re getting quite a collection of Rails projects. I decided to add a column to show which version of Rails each was running—a column that would be automatically updated. It turns out, it’s pretty easy to do with grit. Rails tips bundler git. Larr; Previous post. Next post →.
boblail.com
@boblail
http://boblail.com/tagged/Include
Automatically Including Javascripts and Stylesheets. In more than one of my projects, I have javascript or stylesheet files with several hundred lines. Also, I rotate between several active projects and forget exactly where I put things. :( What I want to do is break these files into smaller ones by responsibility but be able to concatenate them for production to reduce requests. Rails has an excellent way of accomplishing the concatenation: the. Option that works for both. With it, you can write:. Def i...
boblail.com
@boblail
http://boblail.com/tagged/tips
Run unit, functional, and integration tests without loading Rails three times! In Rails, you can run. Which run the tests in. Respectively. You can also run. Which runs all three. Runs all three one after another—I’ve always wondered why—so you pay the cost of loading the test suite (and Rails) three times. It’s not hard to run unit, functional, and integration tests all at once (although I had a couple of false starts). Here’s a. Task that does the trick:. As the Lead Developer of Emerging Products.
boblail.com
@boblail
http://boblail.com/tagged/rails-tips-bundler-git
How to read a project’s dependencies directly from git. I have a program that lists all of my company’s projects and various statistics about them. Between little APIs, background services, and large applications, we’re getting quite a collection of Rails projects. I decided to add a column to show which version of Rails each was running—a column that would be automatically updated. It turns out, it’s pretty easy to do with grit. Rails tips bundler git. As the Lead Developer of Emerging Products.
boblail.com
@boblail
http://boblail.com/tagged/Javascripts
Automatically Including Javascripts and Stylesheets. In more than one of my projects, I have javascript or stylesheet files with several hundred lines. Also, I rotate between several active projects and forget exactly where I put things. :( What I want to do is break these files into smaller ones by responsibility but be able to concatenate them for production to reduce requests. Rails has an excellent way of accomplishing the concatenation: the. Option that works for both. With it, you can write:. Def i...
boblail.com
@boblail
http://boblail.com/tagged/rails-config-configuration-ruby-extend-globals
This week I was configuring an application to run different instances depending on the subdomain requested. This is really quite easy: here’s the basic theory DHH used in Basecamp: http:/ gist.github.com/45076. Easy enough. But, now, I want to use this only in. Environments. In development I want http:/ localhost:3000 to just be the development instance (. Current account = Account.first. I’d love to solve this by adding something like the following to config/environments/development.rb. But it wouldn&rs...
boblail.com
Automatically Including Javascripts and... - @boblail
http://boblail.com/post/391906706/automatically-including-javascripts-and
Automatically Including Javascripts and Stylesheets. In more than one of my projects, I have javascript or stylesheet files with several hundred lines. Also, I rotate between several active projects and forget exactly where I put things. :( What I want to do is break these files into smaller ones by responsibility but be able to concatenate them for production to reduce requests. Rails has an excellent way of accomplishing the concatenation: the. Option that works for both. With it, you can write:. Def i...