This project is archived and is in readonly mode.
edge rails sends include to uninitialized constant Rack::Session::Abstract::SessionHash
-
Andrea Campi
AFAIK you need to use edge rack:
gem 'rack', :git => 'git://github.com/rack/rack.git' -
Jeremiah
That works, thanks.
Should that line be included in the Gemfile template for new edge rails apps or does that cause other issues?
-
Andrea Campi
Actually, you should have that line in your Gemfile, as long as you have a (recent) edge installed.
It's not enough to use the rails script from an edge checkout, you need to install edge gems. -
Santiago Pastorino
- State changed from new to resolved
- Importance changed from to Low
-
Jeremiah
I might be missing something but if edge rails always uses edge gems then does it make sense that it declare those in the Gemfile template (like it does for arel).
I didn't use the rails script from edge but from the installed gem @ 3.0.0. Is this not the correct usage? If not I see a spot in the guides that could be updated for clarity.
eg. in railties/lib/rails/generators/rails/app/templates/Gemfile
<%- if options.dev? -%> gem 'rails', :path => '<%= Rails::Generators::RAILS_DEV_PATH %>' gem 'arel', :git => 'git://github.com/rails/arel.git' <%- elsif options.edge? -%> gem 'rails', :git => 'git://github.com/rails/rails.git' gem 'arel', :git => 'git://github.com/rails/arel.git' gem 'rack', :git => 'git://github.com/rack/rack.git' # < = like so? <%- else -%> gem 'rails', '<%= Rails::VERSION::STRING %>' # Bundle edge Rails instead: # gem 'rails', :git => 'git://github.com/rails/rails.git' <%- end -%> -
Santiago Pastorino
Since this commit http://github.com/rails/rails/commit/848e48ec you have what you want I guess ;).
-
Thomas van der Pol
I was testing a patch and used my local git repository as a dependency in a freshly generated app ( gem 'rails', :path => 'path/to/src' ) and ran into this same problem. Note the slightly different use case from the original ticket - I did not want my normal app to rely on edge rails but instead wanted to use a local repository of code as my rails gem to test a patch.
Josh K in IRC recommended I instead fork the rails repo and use the remote git repository of my fork as the gem dependency. This has the same issue also.
Manually adding the dependencies on edge rack and edge arel solved this problem, as described above.
I would be happy to add a bit of documentation to the contrib guide (http://guides.rubyonrails.org/contributing_to_ruby_on_rails.html) explaining how to set up a rails app to use either a local code directory or a private fork for the purposes of testing patches or your own development (such a section is currently missing). Before I dive into that, I just want to verify this would be the correct thing to do.
-
Josh Kalderimis
Hey Thomas,
I have checked with Santiago and it would be great if you could add some further documentation about this in the docrails repository. (https://github.com/lifo/docrails)
Thanks for taking the time to look into this,
Josh