You can do this with constraints in routes.rb:
resource :account, :constraints => { :protocol => "https", :subdomain => "secure" }
Also, if you have many secure routes, and you want to DRY things up, you can create a scope
for your secure routes:
scope :constraints => { :protocol => "https", :subdomain => "secure" } do
...[secure routes]...
end