PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > comp.lang.ruby > Re: Debug
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Re: Debug

Réponse
 
LinkBack Outils de la discussion
Vieux 17/09/2007, 04h05   #1
Bambang Purnomosidi D. P.
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Debug

On Mon, 17 Sep 2007, coolgeng coolgeng wrote:

> I check the development.log, and it says : "Mysql::Error: #42S02Table
> 'depot_development.sessions' doesn't exist: SHOW FIELDS FROM sessions"


Have a look at config/environment.rb:

...
...
# Use the database for sessions instead of the file system
# (create the session table with 'rake db:sessions:create')
config.action_controller.session_store = :active_record_store
...
...

If you activate config.action_controller.session_store above, you should
do 'rake db:sessions:create' first. If you don't want to use MySQL table
to store session, uncomment above.

--
http://bpdp.wordpress.com
Key fingerprint FBBA CDA6 1A33 D41C 2470 5B82 12D9 DB12 84C7 32CE
Key server ldap://pgp.surfnet.nl:11370 & hkp://subkeys.pgp.net
ID 0x84C732CE


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


  Réponse avec citation
Vieux 17/09/2007, 06h35   #2
John Joyce
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Debug


On Sep 16, 2007, at 10:17 PM, coolgeng coolgeng wrote:

> Thanks a lot. When I disabled this line, the program do work.
> But if I would like to reserve this function and not discard this
> line, what
> should I do?
>
>

From this point on it is HIGHLY recommended to buy a book.
Especially the Agile Web Development With Rails book.
It's all in there. (not necessarily in the order you might expect,
but it's in there)
If you're really new to web development, you should go for the Rails
book from SitePoint publishing.
It's a perfect newbie book, but you'll still want to have AWDWR.
Also, do not neglect the Ruby on Rails web site. There is lots of
info there too.
The Rails Talk group is also ful, but you'll do better to go
there after you've learnt the basics of Rails.
Don't worry, Rails basics are not that tough. A lot of frameworks in
other languages are a LOT more convoluted (sometimes just by the
language they're written in)
Oh one more. keep a browser window open to the Rails API !!! It's
quite good and extremely useful in learning and more.

but you really should try to keep questions for this list to Ruby
specific things.
some Rails stuff is Ruby specific, but so far this isn't.

  Réponse avec citation
Vieux 17/09/2007, 07h11   #3
Robert
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Debug

John Joyce wrote:
>
> On Sep 16, 2007, at 10:17 PM, coolgeng coolgeng wrote:
>
>> Thanks a lot. When I disabled this line, the program do work.
>> But if I would like to reserve this function and not discard this
>> line, what
>> should I do?
>>
>>

> From this point on it is HIGHLY recommended to buy a book. Especially
> the Agile Web Development With Rails book.
> It's all in there. (not necessarily in the order you might expect, but
> it's in there)
> If you're really new to web development, you should go for the Rails
> book from SitePoint publishing.
> It's a perfect newbie book, but you'll still want to have AWDWR.
> Also, do not neglect the Ruby on Rails web site. There is lots of info
> there too.
> The Rails Talk group is also ful, but you'll do better to go there
> after you've learnt the basics of Rails.
> Don't worry, Rails basics are not that tough. A lot of frameworks in
> other languages are a LOT more convoluted (sometimes just by the
> language they're written in)
> Oh one more. keep a browser window open to the Rails API !!! It's
> quite good and extremely useful in learning and more.
>
> but you really should try to keep questions for this list to Ruby
> specific things.
> some Rails stuff is Ruby specific, but so far this isn't.

Also look at RailsSpace I have both and RailsSpace does a good job of
providing information you would have to dig for in the Agile book.

-r


  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 12h24.


Édité par : vBulletin® version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,08594 seconds with 11 queries