Displaying 2 results from an estimated 2 matches for "munasinghe".
Did you mean:
marasinghe
2010 Oct 31
9
self.where('section = ?', '%:search_item%')
I am trying to do a search where I can enter a part of a word and the
search find all occurrences of that part word in the field. The above
subject does not work. Can anyone help
I am using Rails 3 and ruby 1.9.2
I use to be able to do it in rails 2.x.
In my Model I have the following:-
def self.search(search_item)
if search_item
self.where(''section = ?'',
2010 Aug 19
4
implementing project management and event types
I am implemented a simple project management application. Each
project has various events, and each event can be a different type.
Some event information is common, such as name, start date, close
date, and comments. I have a projects table which has_many events.
My plan is to have several sub-event tables, like event_get_access
which will contain an event_id field to link it to table events as