RailsCasts Pro episodes are now free!

Learn more or hide this

Chris Toynbee's Profile

GitHub User: ctoynbee

Comments by Chris Toynbee


If you have a problem with assets not showing make sure you remove the "http://" from this line:

config.action_controller.asset_host = "http://" + config.domain


Hi all,

First thanks Ryan. Railscasts are excellent. I've learnt so much from you.

I'm fairly new to Rails (been learning the last few months) so I haven't had any real exposure to Rails 2.

I'm trying to recreate this tutorial in Rails 3 and I think I'm having trouble with the routes.rb file. This line:

current_cart 'cart', :controller => 'carts', :action => 'show', :id => 'current'

In the show code the method looks like it's in application.rb.

I'm trying to ge this working in Rails 3.0.10 and ruby 1.9.2p290

Can anyone help me correct code in the function for rails 3 and fix my routes.rb?