Rails td cell link with instance variables -


i have link:

<%= link_to "#{x.name}", { :controller => 'pages', :action => 'berufsschule', :given_user => x.name} , :class => "btn btn-danger" %> 

i want clickable table cell. how can this?

you can try via css. create class this:

a.cell_link {display: block; width: 100%; margin: 2em auto;} 

and add in :class => "btn btn-danger"section; e.g. :class => "btn btn-danger cell_link.

not knowing table or ui needs may find margin section un-needed or incorrect.


Comments

Popular posts from this blog

javascript - backbone.js Collection.add() doesn't `construct` (`initialize`) an object -

php - Get uncommon values from two or more arrays -

Adding duplicate array rows in Php -