Rails / Cappuccino App Not Loading on Heroku

I have a rails app with a cappuccino front end that I am trying to deploy onto Heroku.

The app works fine when I run it on localhost using WEBrick, but when I push onto Heroku I get the error message ActionController::RoutingError (No route matches "/"):

Here is the contents of the routing file:

CappcourceWs::Application.routes.draw do
  resources :transaction_logs

  resources :users
end

Is there a route that I have failed to define?

Answers


Doesn't look like a heroku-specific problem. My first guess is you need to add a root route, such as:

CappcourceWs::Application.routes.draw do
  root :to => 'users#login'

  resources :transaction_logs
  resources :users
end

...or whatever the appropriate action/view is in your case.


Need Your Help

url.openStream() gives NullPointerException for just one url

java android nullpointerexception

please do not mark it as a duplicated because I have already searched Stackoverflow before posting it, and found this solution,

Django serializer error: 'NoneType' object has no attribute '_meta'

django json serialization attributeerror

I recently found a great bit of code to JSON serialize various objects in Django. Unfortunately, the code throws an AttributeError when it encounters some types of models.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.