We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
To DRY up the code, add config/initializers/show_for.rb extending ShowFor::Builder with your custom methods.
config/initializers/show_for.rb
ShowFor::Builder
i.e.
# config/initializers/show_for.rb class ShowFor::Builder def artists attribute(:artists) do if object.persisted? object.artists.collect do |artist| template.link_to(artist.last_name, template.main_app.url_for([:edit, :console, artist])) end.join(', ').html_safe end end end end
There was an error while loading. Please reload this page.