I’m trying to get the backbone of a rails project up and running
on localhost and also on a rails playground hosted site.
but when I try this on my rails playground site I get this when I call
the say/hello like this: http://erichermann.com/say/hello:
ActionView::MissingTemplate (Missing template say/hello.html.erb in view
And I get this when I call the say/hello like this:
ActionController::RoutingError (No route matches “/controller/say/hello”
My controller code looks like this
class SayController < ApplicationController def hello end end
And my routes.rb code looks like this:
ActionController::Routing::Routes.draw do |map| map.connect ':controller/:action/:id' map.connect ':controller/:action/:id.:format' end
One thing that could be causing a big problem is that on localhost, my
rails version is: Rails 1.2.6
and on the Rails Playground hosting the version is: Rails 2.1.1
Any ideas how I can get this to work in both places?