Hi Friends, I am brand new to RoR.Kindly help me with the following problem. Following are the steps i have done. 1) C:/> rails appone 2) C:/> cd appone 3) C:/appone> cd script 4) C:/appone/script> ruby generate controller appone index 5) Edited C:/appone/app/controllers/appone_controller.rb class ApponeController < ApplicationController def index time = Time.now @time = time end end 6) Edited C:\appone\app\views\appone\index.rhtml <h1>Appone#index</h1> <h1>Time : <%=@time%></h1> <p>Find me in app/views/appone/index.rhtml</p> 7) C:/appone/script> ruby server webrick 8) in the IE typed the following URL http://localhost:3000/appone/ Got the following error message in the server console: #<ArgumentError: Anonymous modules have no name to be referenced by> ["C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:404:in `to_constant_name ''", "C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:214:in `qualified_nam e_for''", "C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:476:in `const_mi ssing''", "C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/dispatcher.rb:117:in `reset_after_dispatch''", "C:/Insta ntRails/ruby/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/dispatcher.rb:51:in `dispatch''", "C:/InstantRails/ruby/lib/ruby/gems/1.8/ gems/rails-1.2.3/lib/webrick_server.rb:113:in `handle_dispatch''", "C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/rails-1.2.3/li b/webrick_server.rb:79:in `service''", "C:/InstantRails/ruby/lib/ruby/1.8/webrick/httpserver.rb:104:in `service''", "C:/Instant Rails/ruby/lib/ruby/1.8/webrick/httpserver.rb:65:in `run''", "C:/InstantRails/ruby/lib/ruby/1.8/webrick/server.rb:173:in `star t_thread''", "C:/InstantRails/ruby/lib/ruby/1.8/webrick/server.rb:162:in `start''", "C:/InstantRails/ruby/lib/ruby/1.8/webrick/ server.rb:162:in `start_thread''", "C:/InstantRails/ruby/lib/ruby/1.8/webrick/server.rb:95:in `start''", "C:/InstantRails/ruby/ lib/ruby/1.8/webrick/server.rb:92:in `each''", "C:/InstantRails/ruby/lib/ruby/1.8/webrick/server.rb:92:in `start''", "C:/Instan tRails/ruby/lib/ruby/1.8/webrick/server.rb:23:in `start''", "C:/InstantRails/ruby/lib/ruby/1.8/webrick/server.rb:82:in `start'' ", "C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/webrick_server.rb:63:in `dispatch''", "C:/InstantRails/ruby/li b/ruby/gems/1.8/gems/rails-1.2.3/lib/commands/servers/webrick.rb:59", "C:/InstantRails/ruby/lib/ruby/site_ruby/1.8/rubygems/c ustom_require.rb:27:in `gem_original_require''", "C:/InstantRails/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require''", "C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:495:in `requ ire''", "C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:342:in `new_consta nts_in''", "C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:495:in `require ''", "C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/commands/server.rb:39", "C:/InstantRails/ruby/lib/ruby/site_ ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require''", "C:/InstantRails/ruby/lib/ruby/site_ruby/1.8/rubygems/cust om_require.rb:27:in `require''", "server:3"] [2007-09-04 18:30:29] ERROR `/appone/'' not found. 127.0.0.1 - - [04/Sep/2007:18:30:29 India Standard Time] "GET /appone/ HTTP/1.1" 404 277 - -> /appone/ Any help will be hugely appreciated. Thanks in advance!!! regards, dinesh Venkatesan -- 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 -~----------~----~----~----~------~----~------~--~---
There is nothing wrong in controller or view..... but something problem in installation..... what version of Instant Rails you are using..... also try to use ruby console window from Instant rails to create apps...that adds all paths correctly...... On Sep 4, 8:04 am, Dinesh Venkatesan <rails-mailing-l...@andreas- s.net> wrote:> Hi Friends, > > I am brand new to RoR.Kindly help me with the following problem. > > Following are the steps i have done. > 1) C:/> rails appone > > 2) C:/> cd appone > > 3) C:/appone> cd script > > 4) C:/appone/script> ruby generate controller appone index > > 5) Edited C:/appone/app/controllers/appone_controller.rb > > class ApponeController < ApplicationController > > def index > time = Time.now > @time = time > end > end > > 6) Edited C:\appone\app\views\appone\index.rhtml > <h1>Appone#index</h1> > <h1>Time : <%=@time%></h1> > <p>Find me in app/views/appone/index.rhtml</p> > > 7) C:/appone/script> ruby server webrick > > 8) in the IE typed the following URLhttp://localhost:3000/appone/ > > Got the following error message in the server console: > > #<ArgumentError: Anonymous modules have no name to be referenced by> > ["C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/activ-e_support/dependencies.rb:404:in > `to_constant_name > ''", > "C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active-_support/dependencies.rb:214:in > `qualified_nam > e_for''", > "C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active-_support/dependencies.rb:476:in > `const_mi > ssing''", > "C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/dispatcher.rb:-117:in > `reset_after_dispatch''", "C:/Insta > ntRails/ruby/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/dispatcher.rb:51:in > `dispatch''", "C:/InstantRails/ruby/lib/ruby/gems/1.8/ > gems/rails-1.2.3/lib/webrick_server.rb:113:in `handle_dispatch''", > "C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/rails-1.2.3/li > b/webrick_server.rb:79:in `service''", > "C:/InstantRails/ruby/lib/ruby/1.8/webrick/httpserver.rb:104:in > `service''", "C:/Instant > Rails/ruby/lib/ruby/1.8/webrick/httpserver.rb:65:in `run''", > "C:/InstantRails/ruby/lib/ruby/1.8/webrick/server.rb:173:in `star > t_thread''", "C:/InstantRails/ruby/lib/ruby/1.8/webrick/server.rb:162:in > `start''", "C:/InstantRails/ruby/lib/ruby/1.8/webrick/ > server.rb:162:in `start_thread''", > "C:/InstantRails/ruby/lib/ruby/1.8/webrick/server.rb:95:in `start''", > "C:/InstantRails/ruby/ > lib/ruby/1.8/webrick/server.rb:92:in `each''", > "C:/InstantRails/ruby/lib/ruby/1.8/webrick/server.rb:92:in `start''", > "C:/Instan > tRails/ruby/lib/ruby/1.8/webrick/server.rb:23:in `start''", > "C:/InstantRails/ruby/lib/ruby/1.8/webrick/server.rb:82:in `start'' > ", > "C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/webrick_server-.rb:63:in > `dispatch''", "C:/InstantRails/ruby/li > b/ruby/gems/1.8/gems/rails-1.2.3/lib/commands/servers/webrick.rb:59", > "C:/InstantRails/ruby/lib/ruby/site_ruby/1.8/rubygems/c > ustom_require.rb:27:in `gem_original_require''", > "C:/InstantRails/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:-in > `require''", > "C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active-_support/dependencies.rb:495:in > `requ > ire''", > "C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active-_support/dependencies.rb:342:in > `new_consta > nts_in''", > "C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active-_support/dependencies.rb:495:in > `require > ''", > "C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/commands/serve-r.rb:39", > "C:/InstantRails/ruby/lib/ruby/site_ > ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require''", > "C:/InstantRails/ruby/lib/ruby/site_ruby/1.8/rubygems/cust > om_require.rb:27:in `require''", "server:3"] > [2007-09-04 18:30:29] ERROR `/appone/'' not found. > 127.0.0.1 - - [04/Sep/2007:18:30:29 India Standard Time] "GET /appone/ > HTTP/1.1" 404 277 > - -> /appone/ > > Any help will be hugely appreciated. > > Thanks in advance!!! > regards, > dinesh Venkatesan > -- > Posted viahttp://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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Also start server using Instant Rails ... click on "I" ... "rails application" -> "manage rails applications"..then choose your applicaton and start server....... good luck in exploring RoR On Sep 4, 9:17 am, Lakkakula <nlakkak...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> There is nothing wrong in controller or view..... but something > problem in installation..... what version of Instant Rails you are > using..... also try to use ruby console window from Instant rails to > create apps...that adds all paths correctly...... > > On Sep 4, 8:04 am, Dinesh Venkatesan <rails-mailing-l...@andreas- > > > > s.net> wrote: > > Hi Friends, > > > I am brand new to RoR.Kindly help me with the following problem. > > > Following are the steps i have done. > > 1) C:/> rails appone > > > 2) C:/> cd appone > > > 3) C:/appone> cd script > > > 4) C:/appone/script> ruby generate controller appone index > > > 5) Edited C:/appone/app/controllers/appone_controller.rb > > > class ApponeController < ApplicationController > > > def index > > time = Time.now > > @time = time > > end > > end > > > 6) Edited C:\appone\app\views\appone\index.rhtml > > <h1>Appone#index</h1> > > <h1>Time : <%=@time%></h1> > > <p>Find me in app/views/appone/index.rhtml</p> > > > 7) C:/appone/script> ruby server webrick > > > 8) in the IE typed the following URLhttp://localhost:3000/appone/ > > > Got the following error message in the server console: > > > #<ArgumentError: Anonymous modules have no name to be referenced by> > > ["C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/activ--e_support/dependencies.rb:404:in > > `to_constant_name > > ''", > > "C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active--_support/dependencies.rb:214:in > > `qualified_nam > > e_for''", > > "C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active--_support/dependencies.rb:476:in > > `const_mi > > ssing''", > > "C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/dispatcher.rb:--117:in > > `reset_after_dispatch''", "C:/Insta > > ntRails/ruby/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/dispatcher.rb:51:in > > `dispatch''", "C:/InstantRails/ruby/lib/ruby/gems/1.8/ > > gems/rails-1.2.3/lib/webrick_server.rb:113:in `handle_dispatch''", > > "C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/rails-1.2.3/li > > b/webrick_server.rb:79:in `service''", > > "C:/InstantRails/ruby/lib/ruby/1.8/webrick/httpserver.rb:104:in > > `service''", "C:/Instant > > Rails/ruby/lib/ruby/1.8/webrick/httpserver.rb:65:in `run''", > > "C:/InstantRails/ruby/lib/ruby/1.8/webrick/server.rb:173:in `star > > t_thread''", "C:/InstantRails/ruby/lib/ruby/1.8/webrick/server.rb:162:in > > `start''", "C:/InstantRails/ruby/lib/ruby/1.8/webrick/ > > server.rb:162:in `start_thread''", > > "C:/InstantRails/ruby/lib/ruby/1.8/webrick/server.rb:95:in `start''", > > "C:/InstantRails/ruby/ > > lib/ruby/1.8/webrick/server.rb:92:in `each''", > > "C:/InstantRails/ruby/lib/ruby/1.8/webrick/server.rb:92:in `start''", > > "C:/Instan > > tRails/ruby/lib/ruby/1.8/webrick/server.rb:23:in `start''", > > "C:/InstantRails/ruby/lib/ruby/1.8/webrick/server.rb:82:in `start'' > > ", > > "C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/webrick_server--.rb:63:in > > `dispatch''", "C:/InstantRails/ruby/li > > b/ruby/gems/1.8/gems/rails-1.2.3/lib/commands/servers/webrick.rb:59", > > "C:/InstantRails/ruby/lib/ruby/site_ruby/1.8/rubygems/c > > ustom_require.rb:27:in `gem_original_require''", > > "C:/InstantRails/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:--in > > `require''", > > "C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active--_support/dependencies.rb:495:in > > `requ > > ire''", > > "C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active--_support/dependencies.rb:342:in > > `new_consta > > nts_in''", > > "C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active--_support/dependencies.rb:495:in > > `require > > ''", > > "C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/commands/serve--r.rb:39", > > "C:/InstantRails/ruby/lib/ruby/site_ > > ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require''", > > "C:/InstantRails/ruby/lib/ruby/site_ruby/1.8/rubygems/cust > > om_require.rb:27:in `require''", "server:3"] > > [2007-09-04 18:30:29] ERROR `/appone/'' not found. > > 127.0.0.1 - - [04/Sep/2007:18:30:29 India Standard Time] "GET /appone/ > > HTTP/1.1" 404 277 > > - -> /appone/ > > > Any help will be hugely appreciated. > > > Thanks in advance!!! > > regards, > > dinesh Venkatesan > > -- > > Posted viahttp://www.ruby-forum.com/.- Hide quoted text - > > - Show quoted text ---~--~---------~--~----~------------~-------~--~----~ 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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Narasimha Lakkakula wrote:> There is nothing wrong in controller or view..... but something > problem in installation..... what version of Instant Rails you are > using..... also try to use ruby console window from Instant rails to > create apps...that adds all paths correctly...... > > > On Sep 4, 8:04 am, Dinesh Venkatesan <rails-mailing-l...@andreas-Hi Narasimha, Thanks for your reply. I am using Instant rails version 1.2.3. I have tried using the "start server with Mongrel". There also i am facing the same problem. I will try with ruby console now. thanks again. regards, dinesh V -- 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 -~----------~----~----~----~------~----~------~--~---
Dinesh Venkatesan wrote:> Narasimha Lakkakula wrote: >> There is nothing wrong in controller or view..... but something >> problem in installation..... what version of Instant Rails you are >> using..... also try to use ruby console window from Instant rails to >> create apps...that adds all paths correctly...... >> >> >> On Sep 4, 8:04 am, Dinesh Venkatesan <rails-mailing-l...@andreas- > > Hi Narasimha, > > Thanks for your reply. > I am using Instant rails version 1.2.3. I have tried using the "start > server with Mongrel". There also i am facing the same problem. > > I will try with ruby console now. > > thanks again. > regards, > dinesh VHi, I tried with ruby console window also. I am facing the same issue. I hope i am doing something wrong in installation. I will check it. Meanwhile if anybody finds the problem please guide me. regards, dinesh V -- 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 -~----------~----~----~----~------~----~------~--~---