This works fine when running the server, but if I try and start a
console I get:
Loading development environment.
./script/../config/../config/environment.rb:15:NameError:
uninitialized constant YAML
Can anyone help me out? Thanks.
Chris
Frederick Cheung
unread,
Apr 15, 2008, 1:36:24 PM4/15/08
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to rubyonra...@googlegroups.com
You probably need a require 'yaml' before you use yaml. I'm guess that when you run the server, the server itself loads yaml for its own purposes before doing the railsy stuff and so you get lucky.
Fred > Chris > > >
Chris S
unread,
Apr 15, 2008, 1:51:30 PM4/15/08
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message