how do i add styles to actionviews helper tags. like the following
<%= link_to "Home", :controller=> "home", :action=> "index", :style=>{:position=>"absolute", :top=>"0px"} %>
is something like the above achievable. I dont want to add css classes.
Thanks.
Update-- sorry Salil. it doesn't work for link_to_remote. I need a solution that works for any helper tag
<%= link_to_remote "Next", :style=>"float:right;", :update=>"uxUpdateDiv", :url=>{:controller=> "home", :action=> "next"}, :before=> "jQuery('#uxcLoader').css('display','block'); jQuery('#uxOverLay').css('display','block');",:success=> "jQuery('#uxcLoader').css('display','none'); jQuery('#uxOverLay').css('display','none');" %>
the style doesn't seem to be applied at all...!! even a style attribute is not formed.