Slide 18
Slide 18 text
18
INKOVATE - Simple POST
class FollowingsController < ApplicationController
def create
@idea = Idea.find params[:idea_id]
@idea.followers << current_user
changed = ['iv-Main-flash', 'iv-FollowActions', 'iv-Followers']
redirect_to @idea, change: changed,
flash: {info: 'Following this idea!'}
end
end