title: namespace route works locally not on heroku
body: <p>I have admin namespace and in it I have payments#index and videos#create. It works fine locally, but I get a 500 error on heroku. </p>
  
  <p>None of the other questions on here or anywhere seem to add it. The controllers are all in teh right place: controllers/admin/payments_controller.rb. </p>
  
  <p>Going to the add a video page works no problem, but when I try to go to payments index is when I get the 500 error. I can not for the life of me figure out how to solve this.</p>
  
  <p>full code at github.com/spq24 myflix is the repository.</p>
  
  <p>heroku logs (just for error)</p>
  
  <pre><code>    ←[0m
  2014-05-09T08:34:08.556795+00:00 app[web.1]: Completed 200 OK in 476ms (ActiveRe
  cord: 13.9ms)
  2014-05-09T08:34:08.556797+00:00 app[web.1]: Started POST "/stripe_events" for 5
  4.241.31.99 at 2014-05-09 08:26:58 +0000
  2014-05-09T08:34:08.556799+00:00 app[web.1]: Processing by StripeEvent::WebhookC
  ontroller#event as XML
  2014-05-09T08:34:08.556801+00:00 app[web.1]:   Parameters: {"id"=&gt;"evt_409epYVIC
  VnzTg", "created"=&gt;1399624016, "livemode"=&gt;false, "type"=&gt;"invoice.payment_succe
  eded", "data"=&gt;{"object"=&gt;{"date"=&gt;1399620212, "id"=&gt;"in_408dksm8QdJW0R", "perio
  d_start"=&gt;1399015266, "period_end"=&gt;1399620066, "lines"=&gt;{"object"=&gt;"list", "tot
  al_count"=&gt;1, "has_more"=&gt;false, "url"=&gt;"/v1/invoices/in_408dksm8QdJW0R/lines",
  "data"=&gt;[{"id"=&gt;"sub_3xW0lNCigSZQYJ", "object"=&gt;"line_item", "type"=&gt;"subscripti
  on", "livemode"=&gt;false, "amount"=&gt;999, "currency"=&gt;"usd", "proration"=&gt;false, "p
  eriod"=&gt;{"start"=&gt;1399620066, "end"=&gt;1402298466}, "quantity"=&gt;1, "plan"=&gt;{"inter
  val"=&gt;"month", "name"=&gt;"Base Plan", "created"=&gt;1398924680, "amount"=&gt;999, "curre
  ncy"=&gt;"usd", "id"=&gt;"1", "object"=&gt;"plan", "livemode"=&gt;false, "interval_count"=&gt;1
  , "trial_period_days"=&gt;7, "metadata"=&gt;{}, "statement_description"=&gt;"MyFlix Plan"
  }, "description"=&gt;nil, "metadata"=&gt;nil}]}, "subtotal"=&gt;999, "total"=&gt;999, "custo
  mer"=&gt;"cus_3xW0C9v1stVYlw", "object"=&gt;"invoice", "attempted"=&gt;true, "closed"=&gt;tr
  ue, "paid"=&gt;true, "livemode"=&gt;false, "attempt_count"=&gt;1, "amount_due"=&gt;999, "cur
  rency"=&gt;"usd", "starting_balance"=&gt;0, "ending_balance"=&gt;0, "next_payment_attempt
  "=&gt;nil, "charge"=&gt;"ch_409eD9Ikc4x5co", "discount"=&gt;nil, "application_fee"=&gt;nil,
  "subscription"=&gt;"sub_3xW0lNCigSZQYJ", "metadata"=&gt;{}, "description"=&gt;nil}}, "obj
  ect"=&gt;"event", "pending_webhooks"=&gt;1, "request"=&gt;nil, "webhook"=&gt;{"id"=&gt;"evt_409
  epYVICVnzTg", "created"=&gt;1399624016, "livemode"=&gt;false, "type"=&gt;"invoice.payment
  _succeeded", "data"=&gt;{"object"=&gt;{"date"=&gt;1399620212, "id"=&gt;"in_408dksm8QdJW0R",
  "period_start"=&gt;1399015266, "period_end"=&gt;1399620066, "lines"=&gt;{"object"=&gt;"list"
  , "total_count"=&gt;1, "has_more"=&gt;false, "url"=&gt;"/v1/invoices/in_408dksm8QdJW0R/li
  nes", "data"=&gt;[{"id"=&gt;"sub_3xW0lNCigSZQYJ", "object"=&gt;"line_item", "type"=&gt;"subs
  cription", "livemode"=&gt;false, "amount"=&gt;999, "currency"=&gt;"usd", "proration"=&gt;fal
  se, "period"=&gt;{"start"=&gt;1399620066, "end"=&gt;1402298466}, "quantity"=&gt;1, "plan"=&gt;{
  "interval"=&gt;"month", "name"=&gt;"Base Plan", "created"=&gt;1398924680, "amount"=&gt;999,
  "currency"=&gt;"usd", "id"=&gt;"1", "object"=&gt;"plan", "livemode"=&gt;false, "interval_cou
  nt"=&gt;1, "trial_period_days"=&gt;7, "metadata"=&gt;{}, "statement_description"=&gt;"MyFlix
   Plan"}, "description"=&gt;nil, "metadata"=&gt;nil}]}, "subtotal"=&gt;999, "total"=&gt;999,
  "customer"=&gt;"cus_3xW0C9v1stVYlw", "object"=&gt;"invoice", "attempted"=&gt;true, "close
  d"=&gt;true, "paid"=&gt;true, "livemode"=&gt;false, "attempt_count"=&gt;1, "amount_due"=&gt;999
  , "currency"=&gt;"usd", "starting_balance"=&gt;0, "ending_balance"=&gt;0, "next_payment_a
  ttempt"=&gt;nil, "charge"=&gt;"ch_409eD9Ikc4x5co", "discount"=&gt;nil, "application_fee"=
  &gt;nil, "subscription"=&gt;"sub_3xW0lNCigSZQYJ", "metadata"=&gt;{}, "description"=&gt;nil}}
  , "object"=&gt;"event", "pending_webhooks"=&gt;1, "request"=&gt;nil}}
  2014-05-09T08:34:08.556804+00:00 app[web.1]: Completed 200 OK in 436ms (ActiveRe
  cord: 0.0ms)
  2014-05-09T08:34:08.556806+00:00 app[web.1]: Started POST "/stripe_events" for 5
  4.241.31.99 at 2014-05-09 08:26:59 +0000
  2014-05-09T08:34:08.556808+00:00 app[web.1]: Processing by StripeEvent::WebhookC
  ontroller#event as XML
  2014-05-09T08:34:08.556855+00:00 app[web.1]:   Parameters: {"id"=&gt;"evt_409e67VjH
  kKnJR", "created"=&gt;1399624016, "livemode"=&gt;false, "type"=&gt;"invoice.updated", "da
  ta"=&gt;{"object"=&gt;{"date"=&gt;1399620212, "id"=&gt;"in_408dksm8QdJW0R", "period_start"=&gt;
  1399015266, "period_end"=&gt;1399620066, "lines"=&gt;{"object"=&gt;"list", "total_count"=
  &gt;1, "has_more"=&gt;false, "url"=&gt;"/v1/invoices/in_408dksm8QdJW0R/lines", "data"=&gt;[{
  "id"=&gt;"sub_3xW0lNCigSZQYJ", "object"=&gt;"line_item", "type"=&gt;"subscription", "live
  mode"=&gt;false, "amount"=&gt;999, "currency"=&gt;"usd", "proration"=&gt;false, "period"=&gt;{"
  start"=&gt;1399620066, "end"=&gt;1402298466}, "quantity"=&gt;1, "plan"=&gt;{"interval"=&gt;"mon
  th", "name"=&gt;"Base Plan", "created"=&gt;1398924680, "amount"=&gt;999, "currency"=&gt;"usd
  ", "id"=&gt;"1", "object"=&gt;"plan", "livemode"=&gt;false, "interval_count"=&gt;1, "trial_p
  eriod_days"=&gt;7, "metadata"=&gt;{}, "statement_description"=&gt;"MyFlix Plan"}, "descri
  ption"=&gt;nil, "metadata"=&gt;nil}]}, "subtotal"=&gt;999, "total"=&gt;999, "customer"=&gt;"cus
  _3xW0C9v1stVYlw", "object"=&gt;"invoice", "attempted"=&gt;true, "closed"=&gt;true, "paid"
  =&gt;true, "livemode"=&gt;false, "attempt_count"=&gt;1, "amount_due"=&gt;999, "currency"=&gt;"u
  sd", "starting_balance"=&gt;0, "ending_balance"=&gt;0, "next_payment_attempt"=&gt;nil, "c
  harge"=&gt;"ch_409eD9Ikc4x5co", "discount"=&gt;nil, "application_fee"=&gt;nil, "subscript
  ion"=&gt;"sub_3xW0lNCigSZQYJ", "metadata"=&gt;{}, "description"=&gt;nil}, "previous_attri
  butes"=&gt;{"attempted"=&gt;false, "closed"=&gt;false, "paid"=&gt;false, "ending_balance"=&gt;n
  il, "nex
  t_payment_attempt"=&gt;1399623812, "charge"=&gt;nil}}, "object"=&gt;"event", "pending_web
  hooks"=&gt;1, "request"=&gt;nil, "webhook"=&gt;{"id"=&gt;"evt_409e67VjHkKnJR", "created"=&gt;13
  99624016, "livemode"=&gt;false, "type"=&gt;"invoice.updated", "data"=&gt;{"object"=&gt;{"dat
  e"=&gt;1399620212, "id"=&gt;"in_408dksm8QdJW0R", "period_start"=&gt;1399015266, "period_e
  nd"=&gt;1399620066, "lines"=&gt;{"object"=&gt;"list", "total_count"=&gt;1, "has_more"=&gt;false
  , "url"=&gt;"/v1/invoices/in_408dksm8QdJW0R/lines", "data"=&gt;[{"id"=&gt;"sub_3xW0lNCigS
  ZQYJ", "object"=&gt;"line_item", "type"=&gt;"subscription", "livemode"=&gt;false, "amount
  "=&gt;999, "currency"=&gt;"usd", "proration"=&gt;false, "period"=&gt;{"start"=&gt;1399620066, "
  end"=&gt;1402298466}, "quantity"=&gt;1, "plan"=&gt;{"interval"=&gt;"month", "name"=&gt;"Base Pl
  an", "created"=&gt;1398924680, "amount"=&gt;999, "currency"=&gt;"usd", "id"=&gt;"1", "object
  "=&gt;"plan", "livemode"=&gt;false, "interval_count"=&gt;1, "trial_period_days"=&gt;7, "meta
  data"=&gt;{}, "statement_description"=&gt;"MyFlix Plan"}, "description"=&gt;nil, "metadat
  a"=&gt;nil}]}, "subtotal"=&gt;999, "total"=&gt;999, "customer"=&gt;"cus_3xW0C9v1stVYlw", "ob
  ject"=&gt;"invoice", "attempted"=&gt;true, "closed"=&gt;true, "paid"=&gt;true, "livemode"=&gt;f
  alse, "attempt_count"=&gt;1, "amount_due"=&gt;999, "currency"=&gt;"usd", "starting_balanc
  e"=&gt;0, "ending_balance"=&gt;0, "next_payment_attempt"=&gt;nil, "charge"=&gt;"ch_409eD9Ikc
  4x5co", "discount"=&gt;nil, "application_fee"=&gt;nil, "subscription"=&gt;"sub_3xW0lNCigS
  ZQYJ", "metadata"=&gt;{}, "description"=&gt;nil}, "previous_attributes"=&gt;{"attempted"=
  &gt;false, "closed"=&gt;false, "paid"=&gt;false, "ending_balance"=&gt;nil, "next_payment_att
  empt"=&gt;1399623812, "charge"=&gt;nil}}, "object"=&gt;"event", "pending_webhooks"=&gt;1, "r
  equest"=&gt;nil}}
  2014-05-09T08:34:08.556857+00:00 app[web.1]: Completed 200 OK in 442ms (ActiveRe
  cord: 0.0ms)
  2014-05-09T08:34:08.556875+00:00 app[web.1]: Started POST "/stripe_events" for 5
  4.241.31.102 at 2014-05-09 08:34:08 +0000
  2014-05-09T08:34:08.556876+00:00 app[web.1]: Processing by StripeEvent::WebhookC
  ontroller#event as XML
  2014-05-09T08:34:08.556902+00:00 app[web.1]:   Parameters: {"id"=&gt;"evt_409l928VP
  v5pvF", "created"=&gt;1399624447, "livemode"=&gt;false, "type"=&gt;"charge.succeeded", "d
  ata"=&gt;{"object"=&gt;{"id"=&gt;"ch_409lArPxSa6imL", "object"=&gt;"charge", "created"=&gt;1399
  624447, "livemode"=&gt;false, "paid"=&gt;true, "amount"=&gt;999, "currency"=&gt;"usd", "refu
  nded"=&gt;false, "card"=&gt;{"id"=&gt;"card_3xW5t3PXtT1FEL", "object"=&gt;"card", "last4"=&gt;"
  4242", "type"=&gt;"Visa", "exp_month"=&gt;5, "exp_year"=&gt;2015, "fingerprint"=&gt;"Bl5eHYk
  yHwt3wjza", "customer"=&gt;"cus_3xW6LimZ0sAnEf", "country"=&gt;"US", "name"=&gt;nil, "add
  ress_line1"=&gt;nil, "address_line2"=&gt;nil, "address_city"=&gt;nil, "address_state"=&gt;ni
  l, "address_zip"=&gt;nil, "address_country"=&gt;nil, "cvc_check"=&gt;nil, "address_line1_
  check"=&gt;nil, "address_zip_check"=&gt;nil}, "captured"=&gt;true, "refunds"=&gt;nil, "balan
  ce_transaction"=&gt;"txn_409l783a195ezY", "failure_message"=&gt;nil, "failure_code"=&gt;n
  il, "amount_refunded"=&gt;0, "customer"=&gt;"cus_3xW6LimZ0sAnEf", "invoice"=&gt;"in_408kd
  mUx2HuUuo", "description"=&gt;nil, "dispute"=&gt;nil, "metadata"=&gt;{}, "statement_descr
  iption"=&gt;"MyFlix Plan"}}, "object"=&gt;"event", "pending_webhooks"=&gt;1, "request"=&gt;n
  il, "webhook"=&gt;{"id"=&gt;"evt_409l928VPv5pvF", "created"=&gt;1399624447, "livemode"=&gt;f
  alse, "type"=&gt;"charge.succeeded", "data"=&gt;{"object"=&gt;{"id"=&gt;"ch_409lArPxSa6imL",
   "object"=&gt;"charge", "created"=&gt;1399624447, "livemode"=&gt;false, "paid"=&gt;true, "am
  ount"=&gt;999, "currency"=&gt;"usd", "refunded"=&gt;false, "card"=&gt;{"id"=&gt;"card_3xW5t3PXt
  T1FEL", "object"=&gt;"card", "last4"=&gt;"4242", "type"=&gt;"Visa", "exp_month"=&gt;5, "exp_
  year"=&gt;2015, "fingerprint"=&gt;"Bl5eHYkyHwt3wjza", "customer"=&gt;"cus_3xW6LimZ0sAnEf"
  , "country"=&gt;"US", "name"=&gt;nil, "address_line1"=&gt;nil, "address_line2"=&gt;nil, "add
  ress_city"=&gt;nil, "address_state"=&gt;nil, "address_zip"=&gt;nil, "address_country"=&gt;ni
  l, "cvc_check"=&gt;nil, "address_line1_check"=&gt;nil, "address_zip_check"=&gt;nil}, "cap
  tured"=&gt;true, "refunds"=&gt;nil, "balance_transaction"=&gt;"txn_409l783a195ezY", "fail
  ure_message"=&gt;nil, "failure_code"=&gt;nil, "amount_refunded"=&gt;0, "customer"=&gt;"cus_3
  xW6LimZ0sAnEf", "invoice"=&gt;"in_408kdmUx2HuUuo", "description"=&gt;nil, "dispute"=&gt;n
  il, "metadata"=&gt;{}, "statement_description"=&gt;"MyFlix Plan"}}, "object"=&gt;"event",
   "pending_webhooks"=&gt;1, "request"=&gt;nil}}
  2014-05-09T08:34:09.206927+00:00 heroku[router]: at=info method=POST path=/strip
  e_events host=sleepy-ocean-5198.herokuapp.com request_id=27c6f84d-6c26-424e-9566
  -4391464a1b7f fwd="54.241.31.102" dyno=web.1 connect=2ms service=657ms status=20
  0 bytes=463
  2014-05-09T08:34:09.872208+00:00 heroku[router]: at=info method=POST path=/strip
  e_events host=sleepy-ocean-5198.herokuapp.com request_id=8eae91af-da7c-48b0-9964
  -958ae5bace02 fwd="54.241.31.99" dyno=web.1 connect=1ms service=475ms status=200
   bytes=463
  2014-05-09T08:34:10.454076+00:00 heroku[router]: at=info method=POST path=/strip
  e_events host=sleepy-ocean-5198.herokuapp.com request_id=c7e95465-8bc2-4c3b-9d42
  -d9085e7b670d fwd="54.241.31.99" dyno=web.1 connect=10ms service=472ms status=20
  0 bytes=463
  2014-05-09T09:37:35.217202+00:00 heroku[web.1]: Idling
  2014-05-09T09:37:35.218502+00:00 heroku[web.1]: State changed from up to down
  2014-05-09T09:37:38.551600+00:00 app[web.1]:    /app/vendor/ruby-1.9.3/lib/ruby/
  1.9.1/webrick/server.rb:98:in `select'
  2014-05-09T09:37:38.551592+00:00 app[web.1]: [2014-05-09 09:37:38] ERROR SignalE
  xception: SIGTERM
  2014-05-09T09:37:37.996695+00:00 heroku[web.1]: Stopping all processes with SIGT
  ERM
  2014-05-09T09:37:47.824411+00:00 heroku[web.1]: Error R12 (Exit timeout) -&gt; At l
  east one process failed to exit within 10 seconds of SIGTERM
  2014-05-09T09:37:47.824609+00:00 heroku[web.1]: Stopping remaining processes wit
  h SIGKILL
  2014-05-09T09:37:49.579002+00:00 heroku[web.1]: Process exited with status 137
  2014-05-09T14:15:18.556267+00:00 heroku[web.1]: Unidling
  2014-05-09T14:15:18.556534+00:00 heroku[web.1]: State changed from down to start
  ing
  2014-05-09T14:15:23.366641+00:00 heroku[web.1]: Starting process with command `b
  in/rails server -p 43514 -e staging`
  2014-05-09T14:15:38.490267+00:00 app[web.1]: [2014-05-09 14:15:38] INFO  WEBrick
   1.3.1
  2014-05-09T14:15:38.490297+00:00 app[web.1]: [2014-05-09 14:15:38] INFO  ruby 1.
  9.3 (2014-02-24) [x86_64-linux]
  2014-05-09T14:15:38.490774+00:00 app[web.1]: [2014-05-09 14:15:38] INFO  WEBrick
  ::HTTPServer#start: pid=2 port=43514
  2014-05-09T14:15:38.572655+00:00 heroku[web.1]: State changed from starting to u
  p
  2014-05-09T14:15:42.675038+00:00 heroku[router]: at=info method=GET path=/admin/
  payments host=sleepy-ocean-5198.herokuapp.com request_id=e8a5e62c-b0a4-4023-89c6
  -2088e36594f6 fwd="71.225.177.146" dyno=web.1 connect=6ms service=1941ms status=
  500 bytes=919
  2014-05-09T15:20:59.748338+00:00 heroku[web.1]: State changed from up to down
  2014-05-09T15:20:59.747790+00:00 heroku[web.1]: Idling
  2014-05-09T15:21:04.606823+00:00 app[web.1]: [2014-05-09 15:21:04] ERROR SignalE
  xception: SIGTERM
  2014-05-09T15:21:04.606828+00:00 app[web.1]:    /app/vendor/ruby-1.9.3/lib/ruby/
  1.9.1/webrick/server.rb:98:in `select'
  2014-05-09T15:21:03.853141+00:00 heroku[web.1]: Stopping all processes with SIGT
  ERM
  2014-05-09T15:21:12.726780+00:00 heroku[web.1]: Stopping remaining processes wit
  h SIGKILL
  2014-05-09T15:21:12.726482+00:00 heroku[web.1]: Error R12 (Exit timeout) -&gt; At l
  east one process failed to exit within 10 seconds of SIGTERM
  2014-05-09T15:21:14.703782+00:00 heroku[web.1]: Process exited with status 137
  2014-05-10T02:14:23.695056+00:00 heroku[web.1]: Unidling
  2014-05-10T02:14:23.695449+00:00 heroku[web.1]: State changed from down to start
  ing
  2014-05-10T02:14:28.574087+00:00 heroku[web.1]: Starting process with command `b
  in/rails server -p 20557 -e staging`
  2014-05-10T02:14:43.577951+00:00 app[web.1]: [2014-05-10 02:14:43] INFO  WEBrick
   1.3.1
  2014-05-10T02:14:43.578049+00:00 app[web.1]: [2014-05-10 02:14:43] INFO  ruby 1.
  9.3 (2014-02-24) [x86_64-linux]
  2014-05-10T02:14:43.578756+00:00 app[web.1]: [2014-05-10 02:14:43] INFO  WEBrick
  ::HTTPServer#start: pid=2 port=20557
  2014-05-10T02:14:44.150752+00:00 heroku[web.1]: State changed from starting to u
  p
  2014-05-10T02:14:46.540677+00:00 app[web.1]: =&gt; Booting WEBrick
  2014-05-10T02:14:46.540685+00:00 app[web.1]: =&gt; Rails 4.0.0 application starting
   in staging on http://0.0.0.0:20557
  2014-05-10T02:14:46.540689+00:00 app[web.1]: =&gt; Ctrl-C to shutdown server
  2014-05-10T02:14:46.540687+00:00 app[web.1]: =&gt; Run `rails server -h` for more s
  tartup options
  2014-05-10T02:14:46.540690+00:00 app[web.1]: Started POST "/stripe_events" for 5
  4.241.31.102 at 2014-05-10 02:14:46 +0000
  2014-05-10T02:14:46.540692+00:00 app[web.1]: Processing by StripeEvent::WebhookC
  ontroller#event as XML
  2014-05-10T02:14:46.540805+00:00 app[web.1]:   Parameters: {"id"=&gt;"evt_40QsHmL02
  HtiLN", "created"=&gt;1399688062, "livemode"=&gt;false, "type"=&gt;"transfer.created", "d
  ata"=&gt;{"object"=&gt;{"id"=&gt;"tr_40QsjtwZOas45V", "object"=&gt;"transfer", "created"=&gt;13
  99688062, "date"=&gt;1399766400, "livemode"=&gt;false, "amount"=&gt;2820, "currency"=&gt;"us
  d", "status"=&gt;"pending", "balance_transaction"=&gt;"txn_40Qsyqfag5qhFL", "summary"=
  &gt;{"charge_gross"=&gt;2997, "charge_fees"=&gt;177, "charge_fee_details"=&gt;[{"amount"=&gt;17
  7, "currency"=&gt;"usd", "type"=&gt;"stripe_fee", "description"=&gt;nil, "application"=&gt;n
  il}], "refund_gross"=&gt;0, "refund_fees"=&gt;0, "refund_fee_details"=&gt;nil, "adjustmen
  t_gross"=&gt;0, "adjustment_fees"=&gt;0, "adjustment_fee_details"=&gt;nil, "validation_fe
  es"=&gt;0, "validation_count"=&gt;0, "charge_count"=&gt;3, "refund_count"=&gt;0, "adjustment
  _count"=&gt;0, "net"=&gt;2820, "currency"=&gt;"usd", "collected_fee_gross"=&gt;0, "collected
  _fee_count"=&gt;0, "collected_fee_refund_gross"=&gt;0, "collected_fee_refund_count"=&gt;0
  }, "transactions"=&gt;{"object"=&gt;"list", "total_count"=&gt;3, "has_more"=&gt;false, "url"
  =&gt;"/v1/transfers/tr_40QsjtwZOas45V/transactions", "data"=&gt;[{"id"=&gt;"ch_409lArPxSa
  6imL", "type"=&gt;"charge", "amount"=&gt;999, "currency"=&gt;"usd", "net"=&gt;940, "created"
  =&gt;1399624447, "description"=&gt;nil, "fee"=&gt;59, "fee_details"=&gt;[{"amount"=&gt;59, "cur
  rency"=&gt;"usd", "type"=&gt;"stripe_fee", "description"=&gt;"Stripe processing fees", "a
  pplication"=&gt;nil}]}, {"id"=&gt;"ch_409eD9Ikc4x5co", "type"=&gt;"charge", "amount"=&gt;999
  , "currency"=&gt;"usd", "net"=&gt;940, "created"=&gt;1399624015, "description"=&gt;nil, "fee
  "=&gt;59, "fee_details"=&gt;[{"amount"=&gt;59, "currency"=&gt;"usd", "type"=&gt;"stripe_fee", "
  description"=&gt;"Stripe processing fees", "application"=&gt;nil}]}, {"id"=&gt;"ch_409TNK
  WtEpKgJg", "type"=&gt;"charge", "amount"=&gt;999, "currency"=&gt;"usd", "net"=&gt;940, "crea
  ted"=&gt;1399623325, "description"=&gt;nil, "fee"=&gt;59, "fee_details"=&gt;[{"amount"=&gt;59,
  "currency"=&gt;"usd", "type"=&gt;"stripe_fee", "description"=&gt;"Stripe processing fees"
  , "application"=&gt;nil}]}]}, "other_transfers"=&gt;["tr_40QsjtwZOas45V"], "account"=&gt;
  {"object"=&gt;"bank_account", "id"=&gt;"ba_51MRXiEMRwOg5l", "bank_name"=&gt;"WELLS FARGO
  BANK", "last4"=&gt;"7720", "country"=&gt;"US", "currency"=&gt;"usd", "validated"=&gt;false,
  "verified"=&gt;false, "fingerprint"=&gt;"QiT6NsOWh1CHeuXt", "disabled"=&gt;false}, "descr
  iption"=&gt;"STRIPE TRANSFER", "metadata"=&gt;{}, "statement_description"=&gt;nil, "recip
  ient"=&gt;nil}}, "object"=&gt;"event", "pending_webhooks"=&gt;1, "request"=&gt;nil, "webhook
  "=&gt;{"id"=&gt;"evt_40QsHmL02HtiLN", "created"=&gt;1399688062, "livemode"=&gt;false, "type"
  =&gt;"transfer.created", "data"=&gt;{"object"=&gt;{"id"=&gt;"tr_40QsjtwZOas45V", "object"=&gt;"
  transfer", "created"=&gt;1399688062, "date"=&gt;1399766400, "livemode"=&gt;false, "amount
  "=&gt;2820, "currency"=&gt;"usd", "status"=&gt;"pending", "balance_transaction"=&gt;"txn_40Q
  syqfag5qhFL", "summary"=&gt;{"charge_gross"=&gt;2997, "charge_fees"=&gt;177, "charge_fee_
  details"=&gt;[{"amount"=&gt;177, "currency"=&gt;"usd", "type"=&gt;"stripe_fee", "description
  "=&gt;nil, "application"=&gt;nil}], "refund_gross"=&gt;0, "refund_fees"=&gt;0, "refund_fee_d
  etails"=&gt;nil, "adjustment_gross"=&gt;0, "adjustment_fees"=&gt;0, "adjustment_fee_detai
  ls"=&gt;nil, "validation_fees"=&gt;0, "validation_count"=&gt;0, "charge_count"=&gt;3, "refun
  d_count"=&gt;0, "adjustment_count"=&gt;0, "net"=&gt;2820, "currency"=&gt;"usd", "collected_f
  ee_gross"=&gt;0, "collected_fee_count"=&gt;0, "collected_fee_refund_gross"=&gt;0, "collec
  ted_fee_refund_count"=&gt;0}, "transactions"=&gt;{"object"=&gt;"list", "total_count"=&gt;3,
  "has_more"=&gt;false, "url"=&gt;"/v1/transfers/tr_40QsjtwZOas45V/transactions", "data"
  =&gt;[{"id"=&gt;"ch_409lArPxSa6imL", "type"=&gt;"charge", "amount"=&gt;999, "currency"=&gt;"usd
  ", "net"=&gt;940, "created"=&gt;1399624447, "description"=&gt;nil, "fee"=&gt;59, "fee_detail
  s"=&gt;[{"amount"=&gt;59, "currency"=&gt;"usd", "type"=&gt;"stripe_fee", "description"=&gt;"Str
  ipe processing fees", "application"=&gt;nil}]}, {"id"=&gt;"ch_409eD9Ikc4x5co", "type"=
  &gt;"charge", "amount"=&gt;999, "currency"=&gt;"usd", "net"=&gt;940, "created"=&gt;1399624015,
  "description"=&gt;nil, "fee"=&gt;59, "fee_details"=&gt;[{"amount"=&gt;59, "currency"=&gt;"usd",
   "type"=&gt;"stripe_fee", "description"=&gt;"Stripe processing fees", "application"=&gt;n
  il}]}, {"id"=&gt;"ch_409TNKWtEpKgJg", "type"=&gt;"charge", "amount"=&gt;999, "currency"=&gt;
  "usd", "net"=&gt;940, "created"=&gt;1399623325, "description"=&gt;nil, "fee"=&gt;59, "fee_de
  tails"=&gt;[{"amount"=&gt;59, "currency"=&gt;"usd", "type"=&gt;"stripe_fee", "description"=&gt;
  "Stripe processing fees", "application"=&gt;nil}]}]}, "other_transfers"=&gt;["tr_40Qsj
  twZOas45V"], "account"=&gt;{"object"=&gt;"bank_account", "id"=&gt;"ba_51MRXiEMRwOg5l", "b
  ank_name"=&gt;"WELLS FARGO BANK", "last4"=&gt;"7720", "country"=&gt;"US", "currency"=&gt;"us
  d", "validated"=&gt;false, "verified"=&gt;false, "fingerprint"=&gt;"QiT6NsOWh1CHeuXt", "d
  isabled"=&gt;false}, "description"=&gt;"STRIPE TRANSFER", "metadata"=&gt;{}, "statement_d
  escription"=&gt;nil, "recipient"=&gt;nil}}, "object"=&gt;"event", "pending_webhooks"=&gt;1,
  "request"=&gt;nil}}
  2014-05-10T02:14:47.067120+00:00 heroku[router]: at=info method=POST path=/strip
  e_events host=sleepy-ocean-5198.herokuapp.com request_id=c42a44cc-2fa5-4ffa-b965
  -cd1c75824566 fwd="54.241.31.102" dyno=web.1 connect=7ms service=994ms status=20
  0 bytes=463
  2014-05-10T03:19:29.426903+00:00 heroku[web.1]: Idling
  2014-05-10T03:19:29.427468+00:00 heroku[web.1]: State changed from up to down
  2014-05-10T03:19:33.069731+00:00 app[web.1]: [2014-05-10 03:19:33] ERROR SignalE
  xception: SIGTERM
  2014-05-10T03:19:33.069736+00:00 app[web.1]:    /app/vendor/ruby-1.9.3/lib/ruby/
  1.9.1/webrick/server.rb:98:in `select'
  2014-05-10T03:19:32.499332+00:00 heroku[web.1]: Stopping all processes with SIGT
  ERM
  2014-05-10T03:19:42.579749+00:00 heroku[web.1]: Error R12 (Exit timeout) -&gt; At l
  east one process failed to exit within 10 seconds of SIGTERM
  2014-05-10T03:19:42.580159+00:00 heroku[web.1]: Stopping remaining processes wit
  h SIGKILL
  2014-05-10T03:19:44.368080+00:00 heroku[web.1]: Process exited with status 137
  2014-05-10T15:05:15.425110+00:00 heroku[web.1]: Unidling
  2014-05-10T15:05:15.425351+00:00 heroku[web.1]: State changed from down to start
  ing
  2014-05-10T15:05:20.495347+00:00 heroku[web.1]: Starting process with command `b
  in/rails server -p 7210 -e staging`
  2014-05-10T15:05:33.871096+00:00 app[web.1]: [2014-05-10 15:05:33] INFO  WEBrick
   1.3.1
  2014-05-10T15:05:33.871123+00:00 app[web.1]: [2014-05-10 15:05:33] INFO  ruby 1.
  9.3 (2014-02-24) [x86_64-linux]
  2014-05-10T15:05:33.871596+00:00 app[web.1]: [2014-05-10 15:05:33] INFO  WEBrick
  ::HTTPServer#start: pid=2 port=7210
  2014-05-10T15:05:34.318856+00:00 heroku[web.1]: State changed from starting to u
  p
  2014-05-10T15:05:36.453751+00:00 heroku[router]: at=info method=GET path=/admin/
  payments host=sleepy-ocean-5198.herokuapp.com request_id=650af96d-42fe-4871-9949
  -a0c93f537328 fwd="71.225.177.146" dyno=web.1 connect=1ms service=1178ms status=
  500 bytes=919
  2014-05-10T15:05:37.080481+00:00 heroku[router]: at=info method=GET path=/admin/
  payments host=sleepy-ocean-5198.herokuapp.com request_id=a2d12d4b-1ce8-4d0f-993a
  -57aa61a3b40b fwd="71.225.177.146" dyno=web.1 connect=1ms service=1496ms status=
  500 bytes=919
  </code></pre>
  
  <p>routes:</p>
  
  <pre><code>Myflix::Application.routes.draw do
  
    root to: "static_pages#front"
  require 'sidekiq/web'
  mount Sidekiq::Web =&gt; '/sidekiq'
  
  
      resources :videos do
          collection do
              get :search, to: "videos#search"
          end
          resources :reviews
      end
  
      namespace :admin do
          resources :videos, only: [:new, :create]
          resources :payments
      end
  
      resources :categories, only: [:show]
      resources :queue_items, only: [:create, :destroy]
      post 'update_queue', to: 'queue_items#update_queue'
      resources :users
      get 'people', to: 'relationships#index'
      get '/users/make_admin/:id/', to: "users#make_admin"
      resources :relationships, only: [:create, :destroy]
      resources :sessions, only: [:create]
      resources :forgot_passwords, only: [:create]
      resources :password_resets, only: [:show, :create]
      resources :invitations, only: [:new, :create]
  
  
      get '/register',                    to: "users#new"
      get 'register/:token',              to: "users#new_with_invitation_token", as: 'register_with_token'
      get '/sign_in',                     to: "sessions#new"
      get '/sign_out',                    to: "sessions#destroy"
      get '/home',                        to: "videos#index"
      get '/my_queue',                    to: "queue_items#index"
      get '/forgot_password',             to: "forgot_passwords#new"
      get 'forgot_password_confirmation', to: "forgot_passwords#confirm"
      get 'expired_token',                to: "pages#expired_token"
  
  
      mount StripeEvent::Engine =&gt; '/stripe_events'
  
      get 'ui(/:action)', controller: 'ui'
  </code></pre>
  
  <p>end</p>
  
  <p>admin/payments_controller.rb</p>
  
  <pre><code>class Admin::PaymentsController &lt; AdminsController
      def index
          @payments = Payment.all
      end
   end
  </code></pre>
  
  <p>view I'm trying to get to: views/admin/payments</p>
  
  <pre><code>%section.admin_payments
   .container
     .row
       .col-sm-10.col-sm-offset-1
         %section.payment_history
          %ul.nav.nav-tabs
            %li.active
             %a(href="") Recent Payments
             %li
               = link_to "Add a New Video", new_admin_video_path
        %table.table
          %thead
            %tr
              %th Name
              %th Email
              %th Amount
              %th Reference ID
          %tbody
            - @payments.each do |payment|
              %tr
                %td= payment.user.full_name
                %td= payment.user.email
                %td= number_to_currency(payment.amount / 100.0)
                %td= payment.reference_id
  </code></pre>