Ruby on Rails Tuesday, August 28, 2012

Colin Law wrote in post #1073664:
> On 28 August 2012 20:49, Tak G. <lists@ruby-forum.com> wrote:
>>> Can you post your config.ru file please. It seems to be the only bit
>>
>> Attachments:
>> http://www.ruby-forum.com/attachment/7701/Untitled.png
>
> I did ask that you copy and paste here, I am suffering from eye strain
> trying to read the image and one cannot cursor down it to aid
> following it. I don't know whether it will help but can you post
> config/environment.rb
>
> Colin

config/environment.rb


# Load the rails application
require File.expand_path('../application', __FILE__)

# Initialize the rails application
Storytime::Application.initialize!

I'm not entirely sure how to paste images onto here. I'm a newcomer so.
but the error is pretty much this:

C:\Sites\storytime>rails s
=> Booting WEBrick
=> Rails 3.2.1 application starting in development on
http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
Exiting
C:/Sites/storytime/config.ru:5:in `block in <main>': uninitialized
constant Stor
yTime (NameError)
from
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib
/rack/builder.rb:51:in `instance_eval'
from
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib
/rack/builder.rb:51:in `initialize'
from C:/Sites/storytime/config.ru:1:in `new'
from C:/Sites/storytime/config.ru:1:in `<main>'
from
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib
/rack/builder.rb:40:in `eval'
from
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib
/rack/builder.rb:40:in `parse_file'
from
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib
/rack/server.rb:200:in `app'
from
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-3.2.1
/lib/rails/commands/server.rb:46:in `app'
from
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib
/rack/server.rb:301:in `wrapped_app'
from
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib
/rack/server.rb:252:in `start'
from
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-3.2.1
/lib/rails/commands/server.rb:70:in `start'
from
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-3.2.1
/lib/rails/commands.rb:55:in `block in <top (required)>'
from
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-3.2.1
/lib/rails/commands.rb:50:in `tap'
from
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-3.2.1
/lib/rails/commands.rb:50:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'

C:\Sites\storytime>

--
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment