No! it works just fine - but it works really well if you add the columns to the search functions.

So either
config.live_search.columns << :user
or
config.search.columns << :user

/S


On 3/18/2010 9:51 AM, Soren Christensen wrote:
Hi,

I have a lot of various associated tables - but the search seems to be broken in them - did the config for search change ?

I have:

    # Add search to the user column
config.columns[:user].search_sql = "CONCAT(users.first_name, ' ', users.last_name)" config.columns[:user].sort_by :sql => "CONCAT(users.first_name, ' ', users.last_name)"

Where user is a belongs_to column in my database.

Did I miss something ?
The log shows that what I search for is being search for in the database, but ONLY in the native columns.

/S


--
You received this message because you are subscribed to the Google Groups 
"ActiveScaffold : Ruby on Rails plugin" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/activescaffold?hl=en.

Reply via email to