mgpowers, do one thing.  Create a new rails application mgp

rails mgp
cd mgp
ruby script/create controller myfirst greeting

in myfirst controller greeting action put

  def greeting
    @n = "I am mgp"
  end


in app\views\myfirst\greeting.html.erb put this

<b>Yes its working! <%...@n%></b>

remove your \public\index.html

Now start server -- ruby script/server (you should be inside your mgp 
directory)

goto http://localhost:3000/myfirst/greeting

you should get appropriate results.

let me know how it goes.

http://www.classifiedscript.in
Free Craigslist Classified Script
-- 
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 [email protected]
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