And again...

I have created another controller by taking CMD -> ruby script/generate 
controller test

Then i edit the test_controller under app/controller

class TestController < ApplicationController
  def index
          render_text "Test The Message"
    end
end


But once i test it with http://127.0.0.1:3000/test/

I got an error message :


NoMethodError in TestController#index
undefined method `render_text' for #<TestController:0x465f078>
RAILS_ROOT: C:/Ruby/TestOne

app/controllers/test_controller.rb:3:in `index'




-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to