vendor/rails/actionpack/README in radiant-0.6.4 vs vendor/rails/actionpack/README in radiant-0.6.5

- old
+ new

@@ -380,35 +380,35 @@ @post = Post.create(params[:post]) redirect_to :action => "display", :id => @post.id end end - WeblogController::Base.template_root = File.dirname(__FILE__) + WeblogController::Base.view_paths = [ File.dirname(__FILE__) ] WeblogController.process_cgi if $0 == __FILE__ The last two lines are responsible for telling ActionController where the template files are located and actually running the controller on a new request from the web-server (like to be Apache). And the templates look like this: - weblog/layout.rhtml: + weblog/layout.erb: <html><body> <%= yield %> </body></html> - weblog/index.rhtml: + weblog/index.erb: <% for post in @posts %> <p><%= link_to(post.title, :action => "display", :id => post.id %></p> <% end %> - weblog/display.rhtml: + weblog/display.erb: <p> <b><%= post.title %></b><br/> <b><%= post.content %></b> </p> - weblog/new.rhtml: + weblog/new.erb: <%= form "post" %> This simple setup will list all the posts in the system on the index page, which is called by accessing /weblog/. It uses the form builder for the Active Record model to make the new screen, which in turn hands everything over to \ No newline at end of file