Trying to convert rails. 2.3.4 app in rails 3 but not displayed

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

When I go 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 renders correctly (where all links and navigation are generated) in application.html.erb, however all my actual view files are being ignored.

Has anyone experienced this?

I am using old style routing with map.connect, is this the problem? Does anyone have a tutorial on how to convert old routes to new ones? I could not understand.

my current routes look like this:

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

      

edit: solved my problem by using yield instead of @content_for_layout.

+2


source to share


1 answer


The Engine Yard blog has a good guide to your new router .



0


source







All Articles