goncalossilva / XAccelRedirect

A Ruby on Rails plugin for X-Accel-Redirect support (the nginx equivalent of X-Sendfile)
13 stars 2 forks source link

Loading problem? #2

Closed rduz closed 13 years ago

rduz commented 13 years ago

Hi,

I've got an older 2.1.1 app that I'm trying to retrofit to use your plugin. When I fire up development after installing the plugin, I receive the following stack trace:

rduz@BIDSK0064U:/srv/rails/multichoice_annuity$ script/server => Booting Mongrel (use 'script/server webrick' to force WEBrick) => Rails 2.1.1 application starting on http://0.0.0.0:3000 => Call with -d to detach => Ctrl-C to shutdown server * Starting Mongrel listening at 0.0.0.0:3000 * Starting Rails with development environment... Exiting /srv/rails/multichoice_annuity/vendor/rails/activesupport/lib/active_support/dependencies.rb:116:in qualified_const_defined?': "Plugins::X-Accel-Redirect::Lib::XAccelRedirect" is not a valid constant name! (NameError) from /srv/rails/multichoice_annuity/vendor/rails/activesupport/lib/active_support/dependencies.rb:339:innew_constants_in' from /srv/rails/multichoice_annuity/vendor/rails/activesupport/lib/active_support/dependencies.rb:331:in collect' from /srv/rails/multichoice_annuity/vendor/rails/activesupport/lib/active_support/dependencies.rb:331:innew_constants_in' from /srv/rails/multichoice_annuity/vendor/rails/activesupport/lib/active_support/dependencies.rb:215:in load_file' from /srv/rails/multichoice_annuity/vendor/rails/activesupport/lib/active_support/dependencies.rb:96:inrequire_or_load' from /srv/rails/multichoice_annuity/vendor/rails/activesupport/lib/active_support/dependencies.rb:261:in load_missing_constant' from /srv/rails/multichoice_annuity/vendor/rails/activesupport/lib/active_support/dependencies.rb:468:inconst_missing' from /srv/rails/multichoice_annuity/vendor/plugins/X-Accel-Redirect/init.rb:4:in evaluate_init_rb' ... 38 levels... from /srv/rails/multichoice_annuity/vendor/rails/railties/lib/commands/server.rb:39 from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:ingem_original_require' from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' from script/server:3

I'm not sure what is going on. Any ideas?

Thank you.

Regards, Rich

goncalossilva commented 13 years ago

Which ruby version are you using? 1.8.6?

goncalossilva commented 13 years ago

I think it's fixed. Try reinstalling the plugin. Please note that I've changed the repository's name... run: $ script/plugin install git://github.com/goncalossilva/XAccelRedirect.git

rduz commented 13 years ago

Thank you! I'll give it a try.

Regards, Rich

On Aug 10, 2011, at 11:23 AM, goncalossilvareply@reply.github.com wrote:

I think it's fixed. Try reinstalling the plugin. Please note that I've changed the repository's name... run: $ script/plugin install git://github.com/goncalossilva/XAccelRedirect.git

Reply to this email directly or view it on GitHub: https://github.com/goncalossilva/XAccelRedirect/issues/2#issuecomment-1774051

goncalossilva commented 13 years ago

I'm assuming this is fixed. If it isn't, please reopen this bug!