Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

イイネ!機能を追加 #6

Open
wants to merge 13 commits into
base: master
Choose a base branch
from
Open

Conversation

willnet
Copy link
Member

@willnet willnet commented May 20, 2014

イイネ!と関係ないコミットも混じってますがスルーしてください 😓

要点は

  • イイネ!は js でリクエスト投げて、成功したらリロードするようにした
  • アイデア用のイイネ!とコメント用のイイネ!を一つのLikeモデルで取り扱うようにして、それぞれの関連を polymorphic で表現した
  • イイネ!用のコントローラはひとつにした
    • routing で concern 使ってみたかったのでした

@@ -21,7 +21,7 @@ def authenticate
redirect_to root_path, alert: 'ログインしてください'
end

def error404(e)
def error404

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

これかw デバック中に困ってましたw

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants