RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

Generic + Smart - link_to_s link_to_edit link_to_destroy

Generic + Smart - link_to_s link_to_edit link_to_destroy before: (movie.online? or movie.owner_id==current_user.id) ? link_to(movie,movie) : '' (movie.owner_id==current_user.id) ? link_to('edit',movie) : ''

after: link_to_s(movie) link_to_edit(movie) </code>

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in