end
elsif params[:friends]
if current_user
- @title = t ".title_friends"
- entries = DiaryEntry.where(:user => current_user.friends)
+ @title = t ".title_followed"
+ entries = DiaryEntry.where(:user => current_user.followings)
else
require_user
return
# Subscribe user to diary comments
@diary_entry.subscriptions.create(:user => current_user)
- redirect_to :action => "index", :display_name => current_user.display_name
+ redirect_to diary_entry_path(@diary_entry.user, @diary_entry)
else
render :action => "new"
end