search for: my_filter

Displaying 3 results from an estimated 3 matches for "my_filter".

Did you mean: _filter
2006 Jan 26
3
global objects?
Forgive the term global if that''s not applicable in rails (i come from a php background) I have a browse controller with a couple of different methods def method1 @properties = Property.find_all #other stuff for that method end def method2 @properties = Property.find_all #other stuff for that method end def method3 @properties = Property.find_all #other stuff for that method end I
2006 May 14
3
need help for simple form tag (noob)
when the user click on "Search" I would like it to point to http://curentpage/?filter=searchtext (the filtering code is already written) it would look like this: <%= start_form_tag(url_for_options = {<something>}) %> <%=text_field (<my_filter>) %> <%= submit_tag(value = "Search")%> any idea how to do this? thanx in advance
2006 Apr 22
0
Sending arguments to filter methods
I want to set up a before_filter, and I want to be able to pass it some parameters. My method looks like def my_filter(a) ... end And I want to do before_filter :myfilter ''a'' I''ve tried the above and before_filter :myfilter, ''a'' but neither one is acceptable. How can I specify an argument to pass in to the filter method? Pat