Displaying 1 result from an estimated 1 matches for "class_if_current".
2007 Apr 17
6
Evaluating variables in Rails views -- help!
I''m building my first Rails application, and things are going OK for the
most part except for stupid little stuff like this that I simply can''t
figure out (it''s always the little things, isn''t it?).
<% for p in @pages %>
<li<% if (params[:id] == p.id) %> class="current"<% end %>><%=
link_to(p.name.capitalize, :action =>