diff --git a/app/helpers/article_helper.rb b/app/helpers/article_helper.rb index 91cf151..f15158a 100644 --- a/app/helpers/article_helper.rb +++ b/app/helpers/article_helper.rb @@ -187,9 +187,9 @@ module ArticleHelper def following_button(page, user) if !user.blank? and user != page.author if page.is_followed_by? user - button :cancel, unfollow_button_text(page), {:controller => 'profile', :profile => page.profile.identifier, :action => 'unfollow_article', :article_id => page.id, :profile => page.profile.identifier} + button :cancel, unfollow_button_text(page), {controller: :profile, profile: page.profile.identifier, action: :unfollow_article, article_id: page.id} else - button :add, follow_button_text(page), {:controller => 'profile', :profile => page.profile.identifier, :action => 'follow_article', :article_id => page.id, :profile => page.profile.identifier} + button :add, follow_button_text(page), {controller: :profile, profile: page.profile.identifier, action: :follow_article, article_id: page.id} end end end -- libgit2 0.21.2