i’ve read there’s a guy from denmark who has brought us a ‘web
development that doesn’t hurt’. so i say to myself: ohh…let me try
this ‘web framework optimized for bla bla’. So, my first tutorial: Radar – O’Reilly. But when i try
to see my first page (http://127.0.0.1:3000/recipe/new), i get this WTF
error: ‘Mysql::Error: Lost connection to MySQL server during query: SHOW
FIELDS FROM recipes’.
My config: win xp sp 2, mysql 5.0.18, ruby 1.8.4, rails 1.1.6, gem
0.9.0, webrick 1.3.1, voltage 220V, frequnce 50Hz (i don’t know yet how
danish web frameworks work and what matters for them).
Can anyone tell me what’s ‘rotten’ in rubyonrails?
I search forums for a solution, but i didn’t find anything.
This is the web development that doesn’t hurt?? I simple tutorial using
their latest version for rubyonrails and most used OS and OSS database,
can not be done? ‘web framework optimized for…’ ?? WTF, in Denmark
until now they where programming using rakes and hoes and now they have
discovered the warm water?
There is something more clever than joe’s loudthinking you can do:
install mysql gem:
gem install mysql
After that, when you try to see a page, maybe you get this err:
‘…could not be located in the dynamic link library libmysql.dll’ (at
least i did)
My solution (i don’t know if it’s the best): copy the libmysql.dll from
[mysql install dir]/bin to [ruby install dir]/bin
Another solution would be switch to .net
hamlet wrote:
i’ve read there’s a guy from denmark who has brought us a ‘web
development that doesn’t hurt’. so i say to myself: ohh…let me try
this ‘web framework optimized for bla bla’. So, my first tutorial: Radar – O’Reilly. But when i try
to see my first page (http://127.0.0.1:3000/recipe/new), i get this WTF
error: ‘Mysql::Error: Lost connection to MySQL server during query: SHOW
FIELDS FROM recipes’.
My config: win xp sp 2, mysql 5.0.18, ruby 1.8.4, rails 1.1.6, gem
0.9.0, webrick 1.3.1, voltage 220V, frequnce 50Hz (i don’t know yet how
danish web frameworks work and what matters for them).
Can anyone tell me what’s ‘rotten’ in rubyonrails?
I search forums for a solution, but i didn’t find anything.
This is the web development that doesn’t hurt?? I simple tutorial using
their latest version for rubyonrails and most used OS and OSS database,
can not be done? ‘web framework optimized for…’ ?? WTF, in Denmark
until now they where programming using rakes and hoes and now they have
discovered the warm water?
OK, all of YOUR sarcasm aside, as the error says, it lost the connection
to your db, so umm, my best guess is that your mysql server might be
down and might need a restart?? Or as Joe suggested, up your voltage.
LOL
Seems clear to me hamlet hoped not to get much out of the tutorial in
the
first place.
Hopefully you can reflect on the days you were beginning with your
current
framework/language and compare your experiences.
Rails programmers wouldn’t be Rails programmers if the framework were as
flimsy as you suggest.
Are you going to have speed bumps while you learn “The Ruby Way?” Yes.
Will you be as productive with Rails during the honeymoon period as you
are
with the language you’ve been using for x years? No.
That should be obvious when you learn anything new.
You may also want to read up on netiquette. The Rails mailing list is
a place where a bunch of very helpful people go out of their way to
answer questions. Making snide comments about a framework a whole lot
of people feel passionately good about will not help your getting
meaningful answers. Just tone it down.
Max
And yet, he >still< gets >solid< answers from the people who likely want
to throw something at him. +2 ruby-on-rails community.
danish web frameworks work and what matters for them).
Your db username or password is wrong, your MySql server is not
started, or you haven’t created the database
This has nothing to do with Rails - I suspect you went throught the
environment setup part of the tutorial a bit too quickly.
You may also want to read up on netiquette. The Rails mailing list is
a place where a bunch of very helpful people go out of their way to
answer questions. Making snide comments about a framework a whole lot
of people feel passionately good about will not help your getting
meaningful answers. Just tone it down.
Max
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.