Skip to content
This repository

Fixed an undefined method error in SearchController #89

Closed
wants to merge 1 commit into from

1 participant

Nathan Rivera
Nathan Rivera

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.

Nathan Rivera nathanlrivera closed this April 29, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 1 unique commit by 1 author.

Feb 01, 2012
FIXED: SearchController undefined method error. 6a0175f
This page is out of date. Refresh to see the latest.
2  app/controllers/admin_data/search_controller.rb
@@ -21,7 +21,7 @@ def destroy
21 21
 end
22 22
 
23 23
 module AdminData
24  
-  class SearchController < ApplicationController
  24
+  class SearchController < AdminData::ApplicationController
25 25
 
26 26
     layout 'search'
27 27
 
Commit_comment_tip

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.