[Rails] Re: Problem with Rails 3 "rails server -d"
Wouldn't it be easier to move this to config/initializers/
your_file.rb ?
Therefore Your file would be automatically loaded every time when You
fire up an rails server.
On 14 Lis, 21:07, mr <mathias.rich...@gmail.com> wrote:
> In my app controller I require a file named "configuration.rb" in the
> config directory like so
>
> require "config/configuration"
>
> This has been working perfectly fine in Rails 2 in all environments
> including prod. Having migrated to Rails 3 this works in all
> environments if I run "rails server" without the daemon option. If I
> run the server with the daemon option (-d), I get the following error:
>
> "no such file to load -- config/configuration"
>
> I have tried various things including changing the require to:
>
> require Rails.root.join("config/configuration")
>
> But that only changes the error message to:
>
> "Missing helper file helpers/config/configuration.rb"
>
> Any help would be appreciated.
>
> Thanks
>
> Mathias
--
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 this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home