Skip to content

Commit

Permalink
Use respond_with more idiomatically. [#64]
Browse files Browse the repository at this point in the history
  • Loading branch information
marnen committed Dec 29, 2011
1 parent f12dec2 commit 6bcc7a0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/controllers/calendars_controller.rb
Expand Up @@ -26,7 +26,8 @@ def create
make_admin_permission_for @calendar
redirect_to '/admin', notice: _('Your calendar was successfully created.')
else
redirect_to :back, error: _("Couldn't create your calendar!")
flash[:error] = _("Couldn't create your calendar!")
respond_with @calendar
end
end

Expand Down

0 comments on commit 6bcc7a0

Please sign in to comment.