Changed .all(params) to .get(:id) wherever possible.
pt_element.erb has class_nl = '"ec_<%=@orbital.n.to_s+@orbital.l'