Displaying 1 result from an estimated 1 matches for "search_aud".
Did you mean:
search_auds
2008 May 29
5
f.checkbox?
...ew:
[code=]<% form_for :event do |f| %>
<label for="stream_search">Search Streams</label> <%= f.check_box
:search_streams, {:class=> "check"} %><br />
<label for="aud_search">Search Audiences</label> <%= f.check_box
:search_auds, {:class=> "check"} %> <br />
<% end %>[/code]
and I want to be able to somehow get these methods in the event model to
return either true or false depending on the checkboxes so I can use
them in if-statements in my search method:
[code=] def search_streams
true...