search for: reload_routes

Displaying 7 results from an estimated 7 matches for "reload_routes".

Did you mean: load_routes
2011 May 27
3
unable to start server
...ruby/gems/1.8/gems/activesupport-3.0.7/lib/active_support/dependencies.rb:225:in `load_dependency'' from /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.7/lib/active_support/dependencies.rb:235:in `load'' from /usr/lib/ruby/gems/1.8/gems/railties-3.0.7/lib/rails/application.rb:127:in `reload_routes!'' from /usr/lib/ruby/gems/1.8/gems/railties-3.0.7/lib/rails/application.rb:127:in `each'' from /usr/lib/ruby/gems/1.8/gems/railties-3.0.7/lib/rails/application.rb:127:in `reload_routes!'' from /usr/lib/ruby/gems/1.8/gems/railties-3.0.7/lib/rails/application.rb:120 from /usr...
2011 Apr 07
3
[Rails 3] No route matches error using RSpec even though route DOES match
...quot; action. Indeed, if I run this through my browser, it works perfectly fine. The problem is when using RSpec, it doesn''t work at all. The corresponding spec for this is: require ''spec_helper'' describe SearchController do before :all do Codebase::Application.reload_routes! # a futile attempt to force new routes to be ready, still doesn''t work end context "a GET to /users with a name" do it "should spit out a list of users with that name" do get :users, :name => URI.escape(User.make.name) response.should be_suc...
2012 Jan 23
0
Problem loading modules through ActiveSupport on_load
...tive_support/dependencies.rb:225:in `load_dependency'' from /home/syed/.rvm/gems/ruby-1.9.2-p0/gems/activesupport-3.0.7/ lib/active_support/dependencies.rb:235:in `load'' from /home/syed/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.7/lib/ rails/application.rb:127:in `block in reload_routes!'' from /home/syed/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.7/lib/ rails/application.rb:127:in `each'' from /home/syed/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.7/lib/ rails/application.rb:127:in `reload_routes!'' from /home/syed/.rvm/gems/ruby-1.9.2-p0/gems/...
2011 Aug 28
3
rspec-rails render_views doesn't render layouts? / how to check flash isn't rendered
I''m trying to test that "static" pages (they''re ERB, but get cached), generated through rails, don''t render any stray flash notices left over by the authentication system (Devise) or wherever else. I''ve tried writing this controller spec, but it appears that response.body only renders the template, not its layouts? describe "so that static
2012 Jan 26
2
Problem while creating new resource on ActiveAdmin
.../lib/rails/application/routes_reloader.rb:29:in `load_paths'' from /home/logs/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.1.0/lib/rails/application/routes_reloader.rb:13:in `reload!'' from /home/logs/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.1.0/lib/rails/application.rb:83:in `reload_routes!'' from /home/logs/.rvm/gems/ruby-1.9.2-p290/gems/activeadmin-0.3.1/lib/active_admin/reloader.rb:17:in `block in attach!'' from /home/logs/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.1.0/lib/active_support/callbacks.rb:404:in `_run_prepare_callbacks'' from /ho...
2012 Oct 18
0
unexpected return (LocalJumpError) only when executing this code within autoloaded classes?
....rb:40:in `load_paths'' from /path/to/.rvm/gems/ruby-1.9.3-p194@some_app_gemset/gems/railties-3.2.8/lib/rails/application/routes_reloader.rb:16:in `reload!'' from /path/to/.rvm/gems/ruby-1.9.3-p194@some_app_gemset/gems/railties-3.2.8/lib/rails/application.rb:108:in `reload_routes!'' from /path/to/.rvm/gems/ruby-1.9.3-p194@some_app_gemset/gems/activeadmin-0.5.0/lib/active_admin/reloader.rb:34:in `reload!'' from /path/to/.rvm/gems/ruby-1.9.3-p194@some_app_gemset/gems/activeadmin-0.5.0/lib/active_admin/reloader.rb:61:in `block in attach!'...
2012 Oct 17
2
autolog: set_trace_func without all the typing
If it helps anyone developing Rails, apps, or gems, I wrote a shortcut for set_trace_func, so next time you want to just add a line before and after some function you are trying to debug you can have Ruby temporarily output every line, method, etc. executed. Also, it lets you define the format, use other loggers, etc. via a proc/lambda define, since you might not like the default format.