vpgholap-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2008-Dec-23 06:53 UTC
Help me : problem in running rails application
Hello to all , I am new in ruby development, so please me, i am asking a very simple query. Problem : I created a simple greeting application 1. F:\RubyProjects>rails chapterone 2. F:\RubyProjects\chapterone>rails script/generate controller greeting 3. after that i edit greeting_controller.rb class GreetingController < ApplicationController def index @welcome_message="Welcome to your first rail application" end end 4. then i create a index.html.rb file in app/view/greeting folder <html> <body> <h1><%=@welcome_message %></h1> </body> </html> 5. then i open browser http:\\localhost:3000/greeting here i got a error ------------------------------- MissingSourceFile in GreetingController#index So can any one suggest me , how to get out of this error. Thank you, Vikas Gholap. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
vpgholap-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org wrote:> 4. then i create a index.html.rb file in app/view/greeting folderI think that this file should be named index.html.erb (.erb, not .rb) Paolo -- 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---