Hi everybody.
I met a strange situation when I begin to use rails.
I install the ruby 1.86, rails 2.0.2, and update the gem to 1.0.1
then I install mongrel.
Just create the rails project and type
"ruby script/generate controller Greeting"
then edit the file greeting_controller.rb add several lines
def index
render :text => "<h1>Welcome to your first Rails
application<h1>"
end
Now I get in this url. It says
MissingSourceFile (no such file to load -- sqlite3):
E:/Program
Files/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`gem_original_require''
E:/Program
Files/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`require''
E:/Program Files/Ruby/lib/ruby/gems/1.8/gems/activesupport-
2.0.2/lib/active_support/dependencies.rb:496:in `require''
and so on.
Who can tell me how to fix it .Thanks
--
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
-~----------~----~----~----~------~----~------~--~---
your rails database.yml is configured to use sqlite3, most likely you installed mysql (or not, or nothing) in config/database.yml this: development: adapter: mysql encoding: utf8 database: myapp_dev username: root password: test: adapter: mysql encoding: utf8 database: myapp_tesst username: root password: production: adapter: mysql encoding: utf8 database: myapp_prod username: password: would be correct for mysql -- 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 -~----------~----~----~----~------~----~------~--~---
OMG, it works! I am so appreciative of this and can''t hold myself! -- 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 -~----------~----~----~----~------~----~------~--~---
http://www.google.com/search?ie=UTF-8&oe=UTF-8&sourceid=navclient&gfns=1&q=no+such+file+to+load+sqlite3 http://groups.google.com/group/rubyonrails-talk/search?group=rubyonrails-talk&q=no+such+file+to+load+sqlite3&qt_g=Search+this+group Install sqlite3. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---