how to add styles to actionview helper tags?

Posted by ZX12R on Stack Overflow See other posts from Stack Overflow or by ZX12R
Published on 2010-05-12T07:47:51Z Indexed on 2010/05/12 7:54 UTC
Read the original article Hit count: 424

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.

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about actionviewhelper