RailsCasts Pro episodes are now free!

Learn more or hide this

Brandon's Profile

GitHub User: brandonparsons

Site: brandonparsons.me

Comments by Brandon


If you aren't creating too many of these routes I think the best way to do this is with static routes - e.g. get "/pricing" => "pages#pricing". It isn't strictly restful, but I think people sometimes go overboard with that. Not only is this simpler, but it also avoids the catch-all route issue mentioned as well as database performance issues brought up.


I did just a little bit of testing, but for me PhantomJS was about 20% slower than Capybara-Webkit.

You don't end up with the QT dependency though... So that might be worth its weight in gold to some.