trying to convert rails 2.3.4 app to rails 3 but views not appearing

Posted by kgrad on Stack Overflow See other posts from Stack Overflow or by kgrad
Published on 2010-04-10T18:07:59Z Indexed on 2010/04/10 18:13 UTC
Read the original article Hit count: 581

I have a simple rails 2.3.4 application I am trying to get running with rails 3.0.0-beta2. I have the server running and all my links and navigation showing, however for some reason the content of my views is not displaying.

When I navigate to Site/index the html in my index.html.erb in my site view is completely ignored. There are no errors in the server log.

My template is rendered properly (where all the links and navigation are being created) within application.html.erb however all of my actual view files are being ignored.

Has anyone experienced this?

I am using old style routing with map.connect, could this be the issue? Does anyone have a tutorial on how to convert old routes to new ones? I couldn't figure it out.

my current routes look like this:

map.connect ':controller/:action/:id'
map.connect ':controller/:action/:id.:format'
map.root :controller => :site, :action => :index

© Stack Overflow or respective owner

Related posts about ruby-on-rails3

Related posts about rails3