This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
For example, to add search-by-email to a model called User | |
in views/casein/users/index.html.erb | |
<%= content_for :sidebar do %> | |
<li> | |
<%= form_tag casein_users_path, {:method => 'get'} do %> | |
<div class='form-group'> | |
<small><%= label_tag "search", "Search by email", {:class => "control-label"} %></small> | |
<%= text_field_tag "search", params[:search], {:class => "form-control", :size => "100%"} %> |