# Button\_to style class

**URL:** <https://www.ruby-forum.com/t/button-to-style-class/74590>\
**Category:** Ruby\
**Created:** [November 7, 2006, 10:49am UTC](https://www.ruby-forum.com/t/button-to-style-class/74590 "2006-11-07T10:49:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![andreas](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/ee7513/32.png) [@andreas](https://www.ruby-forum.com/u/andreas)\
**Post date:** [November 7, 2006, 10:49am UTC](https://www.ruby-forum.com/t/button-to-style-class/74590/1 "2006-11-07T10:49:07Z")

</div>

Hi all,

_is this the correct usergroup for ruby on rails?_ mhhh…

I am new to ruby/rails and want to use a normal button - not a submit  
button - as a link. But I also want to use a css style on that button.

My idea was this:  
\<%= button\_to “Add New Client”, :action =\> ‘new’, :class =\> ‘button’ %\>  
where “button” is my css style

this will result into:

I wonder if there is any better way to do it.  
any ideas?

Thanks for any help or hint  
-Andreas

---

<div class="post-metadata">

**Author:** ![andreas](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/ee7513/32.png) [@andreas](https://www.ruby-forum.com/u/andreas)\
**Post date:** [November 7, 2006, 10:49am UTC](https://www.ruby-forum.com/t/button-to-style-class/74590/2 "2006-11-07T10:49:10Z")

</div>

On Tue, Oct 31, 2006 at 11:55:12PM +0900, Andreas S. wrote:

> Hi all,
> 
> _is this the correct usergroup for ruby on rails?_ mhhh…

No.  
[http://lists.rubyonrails.org/mailman/listinfo/rails](http://lists.rubyonrails.org/mailman/listinfo/rails)
