Getting and setting ruby tags in controller

I want to access the divs in the controller and want to change its
attributes , is it possible in ruby on rails.

plz help me out…