I think you need it when you're not in the view.


On Wed, Sep 18, 2013 at 9:22 PM, davidtlee <notifications@github.com> wrote:

> In app/controllers/events_controller.rb:
>
> > @@ -27,8 +27,12 @@ def edit
> >    end
> >
> >    def add_user
> > -    current_user.join!(@event)
> > -    flash[:success] = I18n.t('flash.joined_event')
> > +    if @event.invite_token.present? and params[:invite_token] == @event.invite_token
> > +      current_user.join!(@event)
> > +      flash[:success] = I18n.t('flash.joined_event')
>
> interesting. When are you supposed to prefix t( ) by I18n?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/davidtlee/consensus/pull/50/files#r6451623>
> .
>