Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Fixed an undefined method error in SearchController #89

Closed
wants to merge 1 commit into from

1 participant

@nathanlrivera

In Rails 3.2 when I try to visit /admin_data I get the following error:

NameError in AdminData::SearchController#quick_search

undefined local variable or method `get_class_from_params' for #AdminData::SearchController:0x007fe18dbd25d8

Adding the AdminData:: namespace to the inheritance fixed this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Feb 1, 2012
  1. FIXED: SearchController undefined method error.

    Nathan Rivera authored
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  app/controllers/admin_data/search_controller.rb
View
2  app/controllers/admin_data/search_controller.rb
@@ -21,7 +21,7 @@ def destroy
end
module AdminData
- class SearchController < ApplicationController
+ class SearchController < AdminData::ApplicationController
layout 'search'
Something went wrong with that request. Please try again.