I created a rails application by "rails demo" command and generated a controller "script/generate controller Say". Then I created a file in app/view/say/hello.html.erb. I added a method "hello" in app/controllers/say_controller.rb. From a browser to access the link "http://localhost:3000/say/hello, I got this error: MissingSourceFile in SayController#index no such file to load -- sqlite3 What''s wrong with my application? Did I forget anything? -- 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 -~----------~----~----~----~------~----~------~--~---
On Sep 9, 8:56 am, Zhao Yi <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> I created a rails application by "rails demo" command and generated a > controller "script/generate controller Say". Then I created a file in > app/view/say/hello.html.erb. I added a method "hello" in > app/controllers/say_controller.rb. From a browser to access the link > "http://localhost:3000/say/hello, I got this error: > > MissingSourceFile in SayController#index > > no such file to load -- sqlite3 > > What''s wrong with my application? Did I forget anything?Sounds like you don''t have the sqlite3-ruby gem (and you''ll need the sqlite3 library as well) Fred> -- > 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 -~----------~----~----~----~------~----~------~--~---
Frederick Cheung wrote:> On Sep 9, 8:56�am, Zhao Yi <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote: >> What''s wrong with my application? Did I forget anything? > Sounds like you don''t have the sqlite3-ruby gem (and you''ll need the > sqlite3 library as well) > > FredWhere can I get it? How can I install it? -- 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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---