Hi *,
someone has suggestions on how to improve this code ? For example I’d
like my parameteres to be similar to the original link_to
helper, :controller => :blah, :action => :blah and so on …
def link_to_current_class(name, controller, action)
link_to name, :controller => controller, :action => action if
params[:controller] != controller
link_to name, { :controller => controller, :action => action },
{ :class => ‘current’ }
end
A better naming is also appreciated
ngw