I''ve created a simple hello world app that doesnt appear to serve up the view greeting.rhtml. :< Any ideas ? The error message is from development.log is... # Logfile created on Tue Aug 18 16:49:55 -0400 2009/!\ FAILSAFE /!\ Tue Aug 18 16:50:34 -0400 2009 Status: 500 Internal Server Error unknown error PS . It does show the default web page ok at http://localhost:3000 just not the app Here is my controller in c:\ruby\hello\app\controllers \app_controller.rb ..... class AppController < ApplicationController def greeting end end Here is my view in c:\ruby\hello\app\views\app\greeting.rhtml <html> <head> Ruby on Rails </head> <body> Yes its working! </body> </html> Here is the URL that I''m trying to access it http://localhost:3000/App/greeting
> > PS . It does show the default web page ok athttp://localhost:3000 > just not the app >It doesn''t show the app because you don''t actually have one. You should read what you see at http://localhost:3000. Specifically, steps 1, 2, and 3 in the main panel give you some obvious tips on what''s next. If these tips are too vague you can find more detailed information on the right panel. Under "Browse the Documentation" follow "Rails Guides" to "Getting Started with Rails". You might also consider picking up a book and working through an example. Pay careful attention here, however, to the versions of Ruby and Rails (and any gems and plugins) used in the book. Happy tRails
I followed step by step the instructions for the first application in the Begining Ruby for Rails book and checked the online documentation before even posting. Do you have any suggestions as shown I have a controller and a view and an application defined but its not finding it or giving me the error message posted.....any ideas ? Thanks! On Aug 19, 7:50 am, Rick <richard.t.ll...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > PS . It does show the default web page ok athttp://localhost:3000 > > just not the app > > It doesn''t show the app because you don''t actually have one. > > You should read what you see athttp://localhost:3000. Specifically, > steps 1, 2, and 3 in the main panel give you some obvious tips on > what''s next. > > If these tips are too vague you can find more detailed information on > the right panel. Under "Browse the Documentation" follow "Rails > Guides" to "Getting Started with Rails". > > You might also consider picking up a book and working through an > example. Pay careful attention here, however, to the versions of Ruby > and Rails (and any gems and plugins) used in the book. > > Happy tRails
On Aug 19, 1:44 pm, mgpowers <gmichae...-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org> wrote:> I followed step by step the instructions for the first application in > the Begining Ruby for Rails book > and checked the online documentation before even posting. > > Do you have any suggestions as shown I have a controller and a view > and an application defined but > its not finding it or giving me the error message posted.....any > ideas ?Look at the log file in log/development.log It''s probably something like a bad database setup or similar. fred> > Thanks! > > On Aug 19, 7:50 am, Rick <richard.t.ll...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > > PS . It does show the default web page ok athttp://localhost:3000 > > > just not the app > > > It doesn''t show the app because you don''t actually have one. > > > You should read what you see athttp://localhost:3000. Specifically, > > steps 1, 2, and 3 in the main panel give you some obvious tips on > > what''s next. > > > If these tips are too vague you can find more detailed information on > > the right panel. Under "Browse the Documentation" follow "Rails > > Guides" to "Getting Started with Rails". > > > You might also consider picking up a book and working through an > > example. Pay careful attention here, however, to the versions of Ruby > > and Rails (and any gems and plugins) used in the book. > > > Happy tRails
I did look at the log file and even posted the error message in the very first post.. see...below...Any ideas ? The error message is from development.log is... # Logfile created on Tue Aug 18 16:49:55 -0400 2009/!\ FAILSAFE /!\ Tue Aug 18 16:50:34 -0400 2009 Status: 500 Internal Server Error unknown error Status: 500 Internal Server Error unknown error PS . It does show the default web page ok at http://localhost:3000 just not the app Here is my controller in c:\ruby\hello\app\controllers \app_controller.rb ..... class AppController < ApplicationController def greeting end end Here is my view in c:\ruby\hello\app\views\app\greeting.rhtml <html> <head> Ruby on Rails </head> <body> Yes its working! </body> </html> Here is the URL that I''m trying to access it http://localhost:3000/App/greeting On Aug 19, 9:43 am, Frederick Cheung <frederick.che...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On Aug 19, 1:44 pm, mgpowers <gmichae...-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org> wrote: > > > I followed step by step the instructions for the first application in > > the Begining Ruby for Rails book > > and checked the online documentation before even posting. > > > Do you have any suggestions as shown I have a controller and a view > > and an application defined but > > its not finding it or giving me the error message posted.....any > > ideas ? > > Look at the log file in log/development.log It''s probably something > like a bad database setup or similar. > > fred > > > > > > > Thanks! > > > On Aug 19, 7:50 am, Rick <richard.t.ll...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > PS . It does show the default web page ok athttp://localhost:3000 > > > > just not the app > > > > It doesn''t show the app because you don''t actually have one. > > > > You should read what you see athttp://localhost:3000. Specifically, > > > steps 1, 2, and 3 in the main panel give you some obvious tips on > > > what''s next. > > > > If these tips are too vague you can find more detailed information on > > > the right panel. Under "Browse the Documentation" follow "Rails > > > Guides" to "Getting Started with Rails". > > > > You might also consider picking up a book and working through an > > > example. Pay careful attention here, however, to the versions of Ruby > > > and Rails (and any gems and plugins) used in the book. > > > > Happy tRails- Hide quoted text - > > - Show quoted text -
Your problem is a missmatch between the controller name and the view directory name. If you''re going to use application_controller.rb then c:\ruby\hello\app \views\app\greeting.rhtml should be c:\ruby\hello\app\views \application\greeting.rhtml. You can use scaffold to help get more familiar with what goes where. Try this: script/generate scaffold User name:string profile:text Now check for new files in app\controllers, app\views, app\models, and db\migrations Then run: rake db:migrate And restart your webserver and browse: http://localhost:3000/users Rick On Aug 19, 10:17 am, mgpowers <gmichae...-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org> wrote:> I did look at the log file and even posted the error message in the > very first post.. > > see...below...Any ideas ? > > The error message is from development.log is... > # Logfile created on Tue Aug 18 16:49:55 -0400 2009/!\ FAILSAFE /!\ > Tue Aug 18 16:50:34 -0400 2009 > Status: 500 Internal Server Error > unknown error > > Status: 500 Internal Server Error > unknown error > > PS . It does show the default web page ok athttp://localhost:3000 > just not the app > > Here is my controller in c:\ruby\hello\app\controllers > \app_controller.rb > ..... > class AppController < ApplicationController > > def greeting > end > > end > > Here is my view in c:\ruby\hello\app\views\app\greeting.rhtml > > <html> > <head> > Ruby on Rails > </head> > <body> > Yes its working! > </body> > </html> > > Here is the URL that I''m trying to access it > > http://localhost:3000/App/greeting > > On Aug 19, 9:43 am, Frederick Cheung <frederick.che...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > wrote: > > > On Aug 19, 1:44 pm, mgpowers <gmichae...-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org> wrote: > > > > I followed step by step the instructions for the first application in > > > the Begining Ruby for Rails book > > > and checked the online documentation before even posting. > > > > Do you have any suggestions as shown I have a controller and a view > > > and an application defined but > > > its not finding it or giving me the error message posted.....any > > > ideas ? > > > Look at the log file in log/development.log It''s probably something > > like a bad database setup or similar. > > > fred > > > > Thanks! > > > > On Aug 19, 7:50 am, Rick <richard.t.ll...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > > PS . It does show the default web page ok athttp://localhost:3000 > > > > > just not the app > > > > > It doesn''t show the app because you don''t actually have one. > > > > > You should read what you see athttp://localhost:3000. Specifically, > > > > steps 1, 2, and 3 in the main panel give you some obvious tips on > > > > what''s next. > > > > > If these tips are too vague you can find more detailed information on > > > > the right panel. Under "Browse the Documentation" follow "Rails > > > > Guides" to "Getting Started with Rails". > > > > > You might also consider picking up a book and working through an > > > > example. Pay careful attention here, however, to the versions of Ruby > > > > and Rails (and any gems and plugins) used in the book. > > > > > Happy tRails- Hide quoted text - > > > - Show quoted text -
Rick Lloyd wrote:> Your problem is a missmatch between the controller name and the view > directory name. > If you''re going to use application_controller.rbBut the OP is not using this name; he''s using app_controller.rb . And this should be apps_controller : controller names are always plural.> then c:\ruby\hello\app > \views\app\greeting.rhtml should be c:\ruby\hello\app\views > \application\greeting.rhtml.No. It should be app/views/app/greeting.html.erb , at least in recent versions of Rails. What version of Rails are you using?> > You can use scaffold to help get more familiar with what goes where. > Try this: > > script/generate scaffold User name:string profile:textThat''s a good idea.> > RickBest, -- Marnen Laibow-Koser http://www.marnen.org marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org -- Posted via http://www.ruby-forum.com/.
On Aug 19, 3:17 pm, mgpowers <gmichae...-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org> wrote:> I did look at the log file and even posted the error message in the > very first post.. > > see...below...Any ideas ?Oops, didn''t spot that. You may get a more verbose error if you try to run ruby script/console Fred> > The error message is from development.log is... > # Logfile created on Tue Aug 18 16:49:55 -0400 2009/!\ FAILSAFE /!\ > Tue Aug 18 16:50:34 -0400 2009 > Status: 500 Internal Server Error > unknown error > > Status: 500 Internal Server Error > unknown error > > PS . It does show the default web page ok athttp://localhost:3000 > just not the app > > Here is my controller in c:\ruby\hello\app\controllers > \app_controller.rb > ..... > class AppController < ApplicationController > > def greeting > end > > end > > Here is my view in c:\ruby\hello\app\views\app\greeting.rhtml > > <html> > <head> > Ruby on Rails > </head> > <body> > Yes its working! > </body> > </html> > > Here is the URL that I''m trying to access it > > http://localhost:3000/App/greeting > > On Aug 19, 9:43 am, Frederick Cheung <frederick.che...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > wrote: > > > > > On Aug 19, 1:44 pm, mgpowers <gmichae...-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org> wrote: > > > > I followed step by step the instructions for the first application in > > > the Begining Ruby for Rails book > > > and checked the online documentation before even posting. > > > > Do you have any suggestions as shown I have a controller and a view > > > and an application defined but > > > its not finding it or giving me the error message posted.....any > > > ideas ? > > > Look at the log file in log/development.log It''s probably something > > like a bad database setup or similar. > > > fred > > > > Thanks! > > > > On Aug 19, 7:50 am, Rick <richard.t.ll...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > > PS . It does show the default web page ok athttp://localhost:3000 > > > > > just not the app > > > > > It doesn''t show the app because you don''t actually have one. > > > > > You should read what you see athttp://localhost:3000. Specifically, > > > > steps 1, 2, and 3 in the main panel give you some obvious tips on > > > > what''s next. > > > > > If these tips are too vague you can find more detailed information on > > > > the right panel. Under "Browse the Documentation" follow "Rails > > > > Guides" to "Getting Started with Rails". > > > > > You might also consider picking up a book and working through an > > > > example. Pay careful attention here, however, to the versions of Ruby > > > > and Rails (and any gems and plugins) used in the book. > > > > > Happy tRails- Hide quoted text - > > > - Show quoted text -
Using rails 2.3.3 I''ve put greeting.rhtml in both app\views\app and app\views\application SAME result....Any other ideas ? I''ve tried starting it in console mode but it just says Load Develope Env >> I''m trying to stay positive about Rails but am a little discouraged that I can get my first controller/view working :< On Aug 19, 12:44 pm, Frederick Cheung <frederick.che...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On Aug 19, 3:17 pm, mgpowers <gmichae...-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org> wrote: > > > I did look at the log file and even posted the error message in the > > very first post.. > > > see...below...Any ideas ? > > Oops, didn''t spot that. You may get a more verbose error if you try to > run > > ruby script/console > > Fred > > > > > > > The error message is from development.log is... > > # Logfile created on Tue Aug 18 16:49:55 -0400 2009/!\ FAILSAFE /!\ > > Tue Aug 18 16:50:34 -0400 2009 > > Status: 500 Internal Server Error > > unknown error > > > Status: 500 Internal Server Error > > unknown error > > > PS . It does show the default web page ok athttp://localhost:3000 > > just not the app > > > Here is my controller in c:\ruby\hello\app\controllers > > \app_controller.rb > > ..... > > class AppController < ApplicationController > > > def greeting > > end > > > end > > > Here is my view in c:\ruby\hello\app\views\app\greeting.rhtml > > > <html> > > <head> > > Ruby on Rails > > </head> > > <body> > > Yes its working! > > </body> > > </html> > > > Here is the URL that I''m trying to access it > > >http://localhost:3000/App/greeting > > > On Aug 19, 9:43 am, Frederick Cheung <frederick.che...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > > wrote: > > > > On Aug 19, 1:44 pm, mgpowers <gmichae...-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org> wrote: > > > > > I followed step by step the instructions for the first application in > > > > the Begining Ruby for Rails book > > > > and checked the online documentation before even posting. > > > > > Do you have any suggestions as shown I have a controller and a view > > > > and an application defined but > > > > its not finding it or giving me the error message posted.....any > > > > ideas ? > > > > Look at the log file in log/development.log It''s probably something > > > like a bad database setup or similar. > > > > fred > > > > > Thanks! > > > > > On Aug 19, 7:50 am, Rick <richard.t.ll...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > > > PS . It does show the default web page ok athttp://localhost:3000 > > > > > > just not the app > > > > > > It doesn''t show the app because you don''t actually have one. > > > > > > You should read what you see athttp://localhost:3000. Specifically, > > > > > steps 1, 2, and 3 in the main panel give you some obvious tips on > > > > > what''s next. > > > > > > If these tips are too vague you can find more detailed information on > > > > > the right panel. Under "Browse the Documentation" follow "Rails > > > > > Guides" to "Getting Started with Rails". > > > > > > You might also consider picking up a book and working through an > > > > > example. Pay careful attention here, however, to the versions of Ruby > > > > > and Rails (and any gems and plugins) used in the book. > > > > > > Happy tRails- Hide quoted text - > > > > - Show quoted text -- Hide quoted text - > > - Show quoted text -
On Aug 19, 1:42 pm, mgpowers <gmichae...-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org> wrote:> Using rails 2.3.3 > > I''ve put greeting.rhtml in both > > app\views\app > > and > > app\views\application > > SAME result....Any other ideas ?As I said before, it should be greeting.html.erb , not greeting.rhtml . Why are you using .rhtml ? That hasn''t been correct for a long time, and it makes me think that you may be following a tutorial for an older version.> > I''ve tried starting it in console mode but it just says Load Develope > Env >>Yes, that''s what it should say. What''s the problem?> > I''m trying to stay positive about Rails but am a little discouraged > that > I can get my first controller/view working :<What documentation have you been using? Best, -- Marnen Laibow-Koser http://www.marnen.org marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org
I''ve changed the view name to greeting.html.erb as suggested but SAME results.. I was jusing the book Beginging Ruby on Rails and looking at the online documentation. Any other suggestions ? On Aug 19, 1:46 pm, Marnen Laibow-Koser <mar...-sbuyVjPbboAdnm+yROfE0A@public.gmane.org> wrote:> On Aug 19, 1:42 pm, mgpowers <gmichae...-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org> wrote: > > > Using rails 2.3.3 > > > I''ve put greeting.rhtml in both > > > app\views\app > > > and > > > app\views\application > > > SAME result....Any other ideas ? > > As I said before, it should be greeting.html.erb , not > greeting.rhtml . Why are you using .rhtml ? That hasn''t been correct > for a long time, and it makes me think that you may be following a > tutorial for an older version. > > > > > I''ve tried starting it in console mode but it just says Load Develope > > Env >> > > Yes, that''s what it should say. What''s the problem? > > > > > I''m trying to stay positive about Rails but am a little discouraged > > that > > I can get my first controller/view working :< > > What documentation have you been using? > > Best, > -- > Marnen Laibow-Koserhttp://www.marnen.org > mar...-sbuyVjPbboAdnm+yROfE0A@public.gmane.org
ok, so just to be complete, what do you get when you type: rake routes On Aug 19, 2:13 pm, mgpowers <gmichae...-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org> wrote:> I''ve changed the view name to greeting.html.erb as suggested > but SAME results.. > > I was jusing the book Beginging Ruby on Rails and > looking at the online documentation. > > Any other suggestions ? > > On Aug 19, 1:46 pm, Marnen Laibow-Koser <mar...-sbuyVjPbboAdnm+yROfE0A@public.gmane.org> wrote: > > > On Aug 19, 1:42 pm, mgpowers <gmichae...-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org> wrote: > > > > Using rails 2.3.3 > > > > I''ve put greeting.rhtml in both > > > > app\views\app > > > > and > > > > app\views\application > > > > SAME result....Any other ideas ? > > > As I said before, it should be greeting.html.erb , not > > greeting.rhtml . Why are you using .rhtml ? That hasn''t been correct > > for a long time, and it makes me think that you may be following a > > tutorial for an older version. > > > > I''ve tried starting it in console mode but it just says Load Develope > > > Env >> > > > Yes, that''s what it should say. What''s the problem? > > > > I''m trying to stay positive about Rails but am a little discouraged > > > that > > > I can get my first controller/view working :< > > > What documentation have you been using? > > > Best, > > -- > > Marnen Laibow-Koserhttp://www.marnen.org > > mar...-sbuyVjPbboAdnm+yROfE0A@public.gmane.org
C:\Ruby\hello>rake routes (in C:/Ruby/hello) /:controller/:action/:id /:controller/:action/:id(.:format) On Aug 19, 2:25 pm, Rick <richard.t.ll...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> ok, so just to be complete, what do you get when you type: > > rake routes > > On Aug 19, 2:13 pm, mgpowers <gmichae...-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org> wrote: > > > > > I''ve changed the view name to greeting.html.erb as suggested > > but SAME results.. > > > I was jusing the book Beginging Ruby on Rails and > > looking at the online documentation. > > > Any other suggestions ? > > > On Aug 19, 1:46 pm, Marnen Laibow-Koser <mar...-sbuyVjPbboAdnm+yROfE0A@public.gmane.org> wrote: > > > > On Aug 19, 1:42 pm, mgpowers <gmichae...-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org> wrote: > > > > > Using rails 2.3.3 > > > > > I''ve put greeting.rhtml in both > > > > > app\views\app > > > > > and > > > > > app\views\application > > > > > SAME result....Any other ideas ? > > > > As I said before, it should be greeting.html.erb , not > > > greeting.rhtml . Why are you using .rhtml ? That hasn''t been correct > > > for a long time, and it makes me think that you may be following a > > > tutorial for an older version. > > > > > I''ve tried starting it in console mode but it just says Load Develope > > > > Env >> > > > > Yes, that''s what it should say. What''s the problem? > > > > > I''m trying to stay positive about Rails but am a little discouraged > > > > that > > > > I can get my first controller/view working :< > > > > What documentation have you been using? > > > > Best, > > > -- > > > Marnen Laibow-Koserhttp://www.marnen.org > > > mar...-sbuyVjPbboDhM7Ab9yBTwA@public.gmane.org Hide quoted text - > > - Show quoted text -
When your http://localhost:3000 comes up, what do you see if you follow the link "About_your_application''s_environment"? I get: Ruby version 1.8.7 (powerpc-darwin9.7.0) RubyGems version 1.3.4 Rack version 1.0 Rails version 2.3.3 Active Record version 2.3.3 Action Pack version 2.3.3 Active Resource version 2.3.3 Action Mailer version 2.3.3 Active Support version 2.3.3 Application root /Users/rick/hello Environment development Database adapter sqlite3 Database schema version 0 Also, using your app_controller.rb and views/app/greeting.rhtml in this environment does the right thing in response to http://localhost:3000/app/greeting. On Aug 19, 3:05 pm, mgpowers <gmichae...-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org> wrote:> C:\Ruby\hello>rake routes > (in C:/Ruby/hello) > /:controller/:action/:id > /:controller/:action/:id(.:format) > > On Aug 19, 2:25 pm,Rick<richard.t.ll...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > ok, so just to be complete, what do you get when you type: > > > rake routes > > > On Aug 19, 2:13 pm, mgpowers <gmichae...-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org> wrote: > > > > I''ve changed the view name to greeting.html.erb as suggested > > > but SAME results.. > > > > I was jusing the book Beginging Ruby on Rails and > > > looking at the online documentation. > > > > Any other suggestions ? > > > > On Aug 19, 1:46 pm, Marnen Laibow-Koser <mar...-sbuyVjPbboAdnm+yROfE0A@public.gmane.org> wrote: > > > > > On Aug 19, 1:42 pm, mgpowers <gmichae...-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org> wrote: > > > > > > Using rails 2.3.3 > > > > > > I''ve put greeting.rhtml in both > > > > > > app\views\app > > > > > > and > > > > > > app\views\application > > > > > > SAME result....Any other ideas ? > > > > > As I said before, it should be greeting.html.erb , not > > > > greeting.rhtml . Why are you using .rhtml ? That hasn''t been correct > > > > for a long time, and it makes me think that you may be following a > > > > tutorial for an older version. > > > > > > I''ve tried starting it in console mode but it just says Load Develope > > > > > Env >> > > > > > Yes, that''s what it should say. What''s the problem? > > > > > > I''m trying to stay positive about Rails but am a little discouraged > > > > > that > > > > > I can get my first controller/view working :< > > > > > What documentation have you been using? > > > > > Best, > > > > -- > > > > Marnen Laibow-Koserhttp://www.marnen.org > > > > mar...-sbuyVjPbboDhM7Ab9yBTwA@public.gmane.org Hide quoted text - > > > - Show quoted text -
When I click on About Environment , I get We''re sorry, but something went wrong The log says !\ FAILSAFE /!\ Fri Aug 21 08:06:58 -0400 2009 Status: 500- Internal Server Error unknown error Unfortunately its not telling much more which is a little frustrating. I even downloaded ruby again , reinstalled rails . Then as before it failed initially because of sqlite3 not being there which I installed but then I still get the same error message... Any ideas ? If I do a gem list , I get actionmailer (2.3.3) actionpack (2.3.3) activerecord (2.3.3) activeresource (2.3.3) activesupport (2.3.3) fxri (0.3.6) fxruby (1.6.16) hpricot (0.6.164) log4r (1.0.5) ptools (1.1.6) rack (1.0.0) rails (2.3.3) rake (0.8.7, 0.8.1) ruby-opengl (0.60.0) sqlite-ruby (2.2.3) sqlite3-ruby (1.2.1) test-unit (2.0.1) win32-api (1.2.1, 1.2.0) win32-clipboard (0.4.4) win32-dir (0.3.2) win32-eventlog (0.5.0) win32-file (0.5.5) win32-file-stat (1.3.1) win32-process (0.5.9) win32-sapi (0.1.4) win32-sound (0.4.1) windows-api (0.2.4) windows-pr (0.9.3) On Aug 21, 12:47 am, Rick <richard.t.ll...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> When yourhttp://localhost:3000comes up, what do you see if you > follow the link "About_your_application''s_environment"? > > I get: > > Ruby version 1.8.7 (powerpc-darwin9.7.0) > RubyGems version 1.3.4 > Rack version 1.0 > Rails version 2.3.3 > Active Record version 2.3.3 > Action Pack version 2.3.3 > Active Resource version 2.3.3 > Action Mailer version 2.3.3 > Active Support version 2.3.3 > Application root /Users/rick/hello > Environment development > Database adapter sqlite3 > Database schema version 0 > > Also, using your app_controller.rb and views/app/greeting.rhtml in > this environment does the right thing in response tohttp://localhost:3000/app/greeting. > > On Aug 19, 3:05 pm, mgpowers <gmichae...-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org> wrote: > > > > > C:\Ruby\hello>rake routes > > (in C:/Ruby/hello) > > /:controller/:action/:id > > /:controller/:action/:id(.:format) > > > On Aug 19, 2:25 pm,Rick<richard.t.ll...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > ok, so just to be complete, what do you get when you type: > > > > rake routes > > > > On Aug 19, 2:13 pm, mgpowers <gmichae...-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org> wrote: > > > > > I''ve changed the view name to greeting.html.erb as suggested > > > > but SAME results.. > > > > > I was jusing the book Beginging Ruby on Rails and > > > > looking at the online documentation. > > > > > Any other suggestions ? > > > > > On Aug 19, 1:46 pm, Marnen Laibow-Koser <mar...-sbuyVjPbboAdnm+yROfE0A@public.gmane.org> wrote: > > > > > > On Aug 19, 1:42 pm, mgpowers <gmichae...-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org> wrote: > > > > > > > Using rails 2.3.3 > > > > > > > I''ve put greeting.rhtml in both > > > > > > > app\views\app > > > > > > > and > > > > > > > app\views\application > > > > > > > SAME result....Any other ideas ? > > > > > > As I said before, it should be greeting.html.erb , not > > > > > greeting.rhtml . Why are you using .rhtml ? That hasn''t been correct > > > > > for a long time, and it makes me think that you may be following a > > > > > tutorial for an older version. > > > > > > > I''ve tried starting it in console mode but it just says Load Develope > > > > > > Env >> > > > > > > Yes, that''s what it should say. What''s the problem? > > > > > > > I''m trying to stay positive about Rails but am a little discouraged > > > > > > that > > > > > > I can get my first controller/view working :< > > > > > > What documentation have you been using? > > > > > > Best, > > > > > -- > > > > > Marnen Laibow-Koserhttp://www.marnen.org > > > > > mar...-sbuyVjPbboDhM7Ab9yBTwA@public.gmane.org Hide quoted text - > > > > - Show quoted text -- Hide quoted text - > > - Show quoted text -
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/.
http://www.buildingwebapps.com/learningrails Start here with your first app. Download and follow all the screencasts - they are free. -- Posted via http://www.ruby-forum.com/.
Thanks for all the support....I am really trying to hang in there especially since there appears to be many good things with Rails but it is hard not knowing exactly why its failing.....Here is what happened when I tired creating the contollter... C:\Ruby\mgp>ruby script/create controller myfirst greeting ruby: No such file or directory -- script/create (LoadError) C:\Ruby\mgp>ruby script\create controller myfirst greeting ruby: No such file or directory -- script/create (LoadError) C:\Ruby\mgp>dir Volume in drive C has no label. Volume Serial Number is 0C3F-B4D3 Directory of C:\Ruby\mgp 08/21/2009 10:13 AM <DIR> . 08/21/2009 10:13 AM <DIR> .. 08/21/2009 10:13 AM <DIR> app 08/21/2009 10:13 AM <DIR> config 08/21/2009 10:13 AM <DIR> db 08/21/2009 10:13 AM <DIR> doc 08/21/2009 10:13 AM <DIR> lib 08/21/2009 10:13 AM <DIR> log 08/21/2009 10:13 AM <DIR> public 08/21/2009 10:13 AM 307 Rakefile On Aug 21, 9:28 am, Rails List <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> 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) > > gotohttp://localhost:3000/myfirst/greeting > > you should get appropriate results. > > let me know how it goes. > > http://www.classifiedscript.in > Free Craigslist Classified Script > -- > Posted viahttp://www.ruby-forum.com/.
2009/8/21 mgpowers <gmichaelid-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org>:> > Thanks for all the support....I am really trying to hang in there > especially since there appears to be > many good things with Rails but it is hard not knowing exactly why its > failing.....Here is what happened > when I tired creating the contollter... > > > C:\Ruby\mgp>ruby script/create controller myfirst greeting > ruby: No such file or directory -- script/create (LoadError)I think that was a typo in Rails List''s post, it should have been ruby script/generate controller myfirst greeting Colin> C:\Ruby\mgp>ruby script\create controller myfirst greeting > ruby: No such file or directory -- script/create (LoadError) > > C:\Ruby\mgp>dir > Volume in drive C has no label. > Volume Serial Number is 0C3F-B4D3 > > Directory of C:\Ruby\mgp > > 08/21/2009 10:13 AM <DIR> . > 08/21/2009 10:13 AM <DIR> .. > 08/21/2009 10:13 AM <DIR> app > 08/21/2009 10:13 AM <DIR> config > 08/21/2009 10:13 AM <DIR> db > 08/21/2009 10:13 AM <DIR> doc > 08/21/2009 10:13 AM <DIR> lib > 08/21/2009 10:13 AM <DIR> log > 08/21/2009 10:13 AM <DIR> public > 08/21/2009 10:13 AM 307 Rakefile > > On Aug 21, 9:28 am, Rails List <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> > wrote: >> 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) >> >> gotohttp://localhost:3000/myfirst/greeting >> >> you should get appropriate results. >> >> let me know how it goes. >> >> http://www.classifiedscript.in >> Free Craigslist Classified Script >> -- >> Posted viahttp://www.ruby-forum.com/. > > >
ok...do all the steps mentioned I still get the same error message.... Why doesnt Webrick tell us more about what exactly is wrong !?!?!!? /!\ FAILSAFE /!\ Fri Aug 21 12:56:58 -0400 2009 Status: 500 Internal Server Error unknown error C:/Ruby/lib/ruby/1.8/dl/import.rb:29:in `initialize'' C:/Ruby/lib/ruby/1.8/dl/import.rb:29:in `dlopen'' C:/Ruby/lib/ruby/1.8/dl/import.rb:29:in `dlload'' C:/Ruby/lib/ruby/1.8/dl/import.rb:27:in `each'' C:/Ruby/lib/ruby/1.8/dl/import.rb:27:in `dlload'' C:/Ruby/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.1-x86-mswin32/lib/ sqlite3/driver/dl/api.rb:63 C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'' C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'' C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.3/lib/ active_support/dependencies.rb:156:in `require'' C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.3/lib/ active_support/dependencies.rb:521:in `new_constants_in'' C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.3/lib/ active_support/dependencies.rb:156:in `require'' C:/Ruby/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.1-x86-mswin32/lib/ sqlite3/driver/dl/driver.rb:33 C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'' C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'' C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.3/lib/ active_support/dependencies.rb:156:in `require'' C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.3/lib/ active_support/dependencies.rb:521:in `new_constants_in'' C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.3/lib/ active_support/dependencies.rb:156:in `require'' C:/Ruby/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.1-x86-mswin32/lib/ sqlite3/database.rb:643:in `load_driver'' C:/Ruby/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.1-x86-mswin32/lib/ sqlite3/database.rb:641:in `each'' C:/Ruby/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.1-x86-mswin32/lib/ sqlite3/database.rb:641:in `load_driver'' C:/Ruby/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.1-x86-mswin32/lib/ sqlite3/database.rb:107:in `initialize'' C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.3/lib/ active_record/connection_adapters/sqlite3_adapter.rb:13:in `new'' C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.3/lib/ active_record/connection_adapters/sqlite3_adapter.rb:13:in `sqlite3_connection'' C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.3/lib/ active_record/connection_adapters/abstract/connection_pool.rb:223:in `send'' C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.3/lib/ active_record/connection_adapters/abstract/connection_pool.rb:223:in `new_connection'' C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.3/lib/ active_record/connection_adapters/abstract/connection_pool.rb:245:in `checkout_new_connection'' C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.3/lib/ active_record/connection_adapters/abstract/connection_pool.rb:188:in `checkout'' C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.3/lib/ active_record/connection_adapters/abstract/connection_pool.rb:184:in `loop'' C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.3/lib/ active_record/connection_adapters/abstract/connection_pool.rb:184:in `checkout'' C:/Ruby/lib/ruby/1.8/monitor.rb:242:in `synchronize'' C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.3/lib/ active_record/connection_adapters/abstract/connection_pool.rb:183:in `checkout'' C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.3/lib/ active_record/connection_adapters/abstract/connection_pool.rb:98:in `connection'' C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.3/lib/ active_record/connection_adapters/abstract/connection_pool.rb:326:in `retrieve_connection'' C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.3/lib/ active_record/connection_adapters/abstract/connection_specification.rb: 123:in `retrieve_connection'' C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.3/lib/ active_record/connection_adapters/abstract/connection_specification.rb: 115:in `connection'' C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.3/lib/ active_record/query_cache.rb:9:in `cache'' C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.3/lib/ active_record/query_cache.rb:28:in `call'' C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.3/lib/ active_record/connection_adapters/abstract/connection_pool.rb:361:in `call'' C:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/head.rb:9:in `call'' C:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/ methodoverride.rb:24:in `call'' C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/ action_controller/params_parser.rb:15:in `call'' C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/ action_controller/session/cookie_store.rb:93:in `call'' C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/ action_controller/reloader.rb:29:in `call'' C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/ action_controller/failsafe.rb:26:in `call'' C:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/lock.rb:11:in `call'' C:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/lock.rb:11:in `synchronize'' C:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/lock.rb:11:in `call'' C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/ action_controller/dispatcher.rb:106:in `call'' C:/Ruby/lib/ruby/gems/1.8/gems/rails-2.3.3/lib/rails/rack/ static.rb:31:in `call'' C:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/urlmap.rb:46:in `call'' C:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/urlmap.rb:40:in `each'' C:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/urlmap.rb:40:in `call'' C:/Ruby/lib/ruby/gems/1.8/gems/rails-2.3.3/lib/rails/rack/ log_tailer.rb:17:in `call'' C:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/ content_length.rb:13:in `call'' C:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/handler/ webrick.rb:46:in `service'' C:/Ruby/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'' C:/Ruby/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'' C:/Ruby/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'' C:/Ruby/lib/ruby/1.8/webrick/server.rb:162:in `start'' C:/Ruby/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'' C:/Ruby/lib/ruby/1.8/webrick/server.rb:95:in `start'' C:/Ruby/lib/ruby/1.8/webrick/server.rb:92:in `each'' C:/Ruby/lib/ruby/1.8/webrick/server.rb:92:in `start'' C:/Ruby/lib/ruby/1.8/webrick/server.rb:23:in `start'' C:/Ruby/lib/ruby/1.8/webrick/server.rb:82:in `start'' C:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/handler/ webrick.rb:13:in `run'' C:/Ruby/lib/ruby/gems/1.8/gems/rails-2.3.3/lib/commands/server.rb: 111 C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'' C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'' script/server:3 On Aug 21, 11:43 am, Colin Law <clan...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote:> 2009/8/21 mgpowers <gmichae...-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org>: > > > > > Thanks for all the support....I am really trying to hang in there > > especially since there appears to be > > many good things with Rails but it is hard not knowing exactly why its > > failing.....Here is what happened > > when I tired creating the contollter... > > > C:\Ruby\mgp>ruby script/create controller myfirst greeting > > ruby: No such file or directory -- script/create (LoadError) > > I think that was a typo in Rails List''s post, it should have been > ruby script/generate controller myfirst greeting > > Colin > > > > > C:\Ruby\mgp>ruby script\create controller myfirst greeting > > ruby: No such file or directory -- script/create (LoadError) > > > C:\Ruby\mgp>dir > > Volume in drive C has no label. > > Volume Serial Number is 0C3F-B4D3 > > > Directory of C:\Ruby\mgp > > > 08/21/2009 10:13 AM <DIR> . > > 08/21/2009 10:13 AM <DIR> .. > > 08/21/2009 10:13 AM <DIR> app > > 08/21/2009 10:13 AM <DIR> config > > 08/21/2009 10:13 AM <DIR> db > > 08/21/2009 10:13 AM <DIR> doc > > 08/21/2009 10:13 AM <DIR> lib > > 08/21/2009 10:13 AM <DIR> log > > 08/21/2009 10:13 AM <DIR> public > > 08/21/2009 10:13 AM 307 Rakefile > > > On Aug 21, 9:28 am, Rails List <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> > > wrote: > >> 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) > > >> gotohttp://localhost:3000/myfirst/greeting > > >> you should get appropriate results. > > >> let me know how it goes. > > >>http://www.classifiedscript.in > >> Free Craigslist Classified Script > >> -- > >> Posted viahttp://www.ruby-forum.com/.- Hide quoted text - > > - Show quoted text -
> I think that was a typo in Rails List''s post, it should have been > ruby script/generate controller myfirst greeting > > ColinOoops. Colin was right. It was a typo. -- Posted via http://www.ruby-forum.com/.
yes...but I still got the same result when I ran the application myfirst .... any way to get Ruby , rails to tell us what it really doesnt like vs. unknown error On Aug 21, 1:06 pm, Rails List <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > I think that was a typo in Rails List''s post, it should have been > > ruby script/generate controller myfirst greeting > > > Colin > > Ooops. Colin was right. It was a typo. > -- > Posted viahttp://www.ruby-forum.com/.
Does anyone have any ideas on this ? I hate to abandon Ruby but the error... /!\ FAILSAFE /!\ Wed Aug 26 10:40:18 -0400 2009 Status: 500 Internal Server Error unknown error C:/Ruby/lib/ruby/1.8/dl/import.rb:29:in `initialize'' C:/Ruby/lib/ruby/1.8/dl/import.rb:29:in `dlopen'' Isn''t very revealing.....why wouldnt my appliaction environment be able to show or my first controller work ? On Aug 21, 1:24 pm, mgpowers <gmichae...-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org> wrote:> yes...but I still got the same result when I ran the application > myfirst .... > any way to get Ruby , rails to tell us what it really doesnt like vs. > unknownerror > > On Aug 21, 1:06 pm, Rails List <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> > wrote: > > > > > > I think that was a typo in Rails List''s post, it should have been > > > ruby script/generate controller myfirst greeting > > > > Colin > > > Ooops. Colin was right. It was a typo. > > -- > > Posted viahttp://www.ruby-forum.com/.- Hide quoted text - > > - Show quoted text -
The error message you''re getting indicates that ruby is having a problem loading a dynamic library. From the long error report you posted on Aug 21 it looks like the problem is related to loading the sqlite3 library: /!\ FAILSAFE /!\ Fri Aug 21 12:56:58 -0400 2009 Status: 500 Internal Server Error unknown error C:/Ruby/lib/ruby/1.8/dl/import.rb:29:in `initialize'' C:/Ruby/lib/ruby/1.8/dl/import.rb:29:in `dlopen'' C:/Ruby/lib/ruby/1.8/dl/import.rb:29:in `dlload'' C:/Ruby/lib/ruby/1.8/dl/import.rb:27:in `each'' C:/Ruby/lib/ruby/1.8/dl/import.rb:27:in `dlload'' C:/Ruby/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.1-x86-mswin32/lib/ sqlite3/driver/dl/api.rb:63 You might want to reinstall the sqlite3-ruby gem: gem uninstall sqlite3-ruby gem install sqlite3-ruby On Aug 26, 10:43 am, mgpowers <gmichae...-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org> wrote:> Does anyone have any ideas on this ? > > I hate to abandon Ruby but the error... > > /!\ FAILSAFE /!\ Wed Aug 26 10:40:18 -0400 2009 > Status: 500 Internal Server Error > unknown error > C:/Ruby/lib/ruby/1.8/dl/import.rb:29:in `initialize'' > C:/Ruby/lib/ruby/1.8/dl/import.rb:29:in `dlopen'' > > Isn''t very revealing.....why wouldnt my appliaction environment be > able to show or my first controller work ? > > On Aug 21, 1:24 pm, mgpowers <gmichae...-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org> wrote: > > > yes...but I still got the same result when I ran the application > > myfirst .... > > any way to get Ruby , rails to tell us what it really doesnt like vs. > > unknownerror > > > On Aug 21, 1:06 pm, Rails List <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> > > wrote: > > > > > I think that was a typo in Rails List''s post, it should have been > > > > ruby script/generate controller myfirst greeting > > > > > Colin > > > > Ooops. Colin was right. It was a typo. > > > -- > > > Posted viahttp://www.ruby-forum.com/.-Hide quoted text - > > > - Show quoted text -
He is running on Windows. I had to put sqlite3.dll and tclsqlite3.dll in my c:\ruby\bin directory. See if that fixes it. -- Posted via http://www.ruby-forum.com/.
I had the same problem. In the dir C:\ruby\lib\ruby\gems\1.8\gems\sqlite3-ruby-1.2.5-x86- mswin32 that is where sqlite3 is installed, I executed setup.rb and the problem was solved.
mgpowers wrote:> Does anyone have any ideas on this ? > > I hate to abandon Ruby but the error... > > /!\ FAILSAFE /!\ Wed Aug 26 10:40:18 -0400 2009 > Status: 500 Internal Server Error > unknown error > C:/Ruby/lib/ruby/1.8/dl/import.rb:29:in `initialize'' > C:/Ruby/lib/ruby/1.8/dl/import.rb:29:in `dlopen'' > > Isn''t very revealing.....why wouldnt my appliaction environment be > able to show or my first controller woHi I had the same problem but its working now. Try just runing the server and entering http://localhost:3000, click on the link "About your aplications environment" if you see an error then it is a database problem. In your prompt enter the config binder and in a text editor look at the file database.yml if it says Adapter:sqlite3 then you need to install sqlite3. Type in the prompt gem install sqlite3-ruby, to complete the installation you have to download a dll and copy it to windows\system32 o sysWOW64 o system you can find the dll file at http://wiki.rubyonrails.org/database-support/sqlite. If the databse.yml was related to mysql probably you set up a password when installing it and probably you would need to edit the yml file to add it. Hope it works... -- Posted via http://www.ruby-forum.com/.
Hello, I have readed whole topic and I have done everything what was wrote above but the error is still showing. I have attacher a photo with error message. I am complete newbie and simply I need some on start. Hope somebody will help me. Attachments: http://www.ruby-forum.com/attachment/4688/error.PNG -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.