Thanks for your answer. The option of moving this source file
somewhere Rails 3 will find it is kind of a last resort for me.
What gets me with this issue is that without the daemon option this
works (the required file is found) whereas with the daemon option it
doesn't work...
On 15 Nov., 09:11, Marcin Seroczynski <sere...@gmail.com> wrote:
> 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.
No comments:
Post a Comment