You need to use javascript for that. Try adding the onclick attribute on the td element.
-- Oscar Del Ben Sent with Sparrow (http://www.sparrowmailapp.com/?sig) On Thursday, July 5, 2012 at 8:56 AM, Sebastian H. wrote: > Hey, > > how can i get an whole <td> cell to be a link. > > my actual code is: > > <% @alluser.each do |x| %> > > <%= link_to "#{x.name (http://x.name)}", { :controller => 'pages', :action => > 'berufsschule', :given_user => x.name (http://x.name)} , :class => "btn > btn-danger" %> > > <% end %> > > i want a whole table cell as link.. not only the text > > thanks > > -- > Posted via http://www.ruby-forum.com/. > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk@googlegroups.com > (mailto:rubyonrails-talk@googlegroups.com). > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscr...@googlegroups.com > (mailto:rubyonrails-talk+unsubscr...@googlegroups.com). > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en-US. > > -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en-US.