search for: select_rol

Displaying 1 result from an estimated 1 matches for "select_rol".

Did you mean: select_row
2008 Jul 08
2
select helper still the worth thing in rails...
...mpany_role_selection(selection=nil) roles= [[''all'', 0]] roles += company_roles.collect {|h| [ h.name, company_roles.index(h)]}.compact.uniq select(''role'', ''id'', roles, {:selected => selection} ,{:onchange => "$(''select_role'').submit()"}) end in my controller, I get the selection @selection = params[:role][:id] then I find and display the users... and I redisplay the page with the form and the list <% form_for(:user, :url => user_path(@user), :html => {:method => :get, :id => ''...