Parcourir la source

Improved notice messages

master
Adrian Short il y a 12 ans
Parent
révision
589de938cf
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. +2
    -2
      app/controllers/feeds_controller.rb

+ 2
- 2
app/controllers/feeds_controller.rb Voir le fichier

@@ -45,7 +45,7 @@ class FeedsController < ApplicationController

respond_to do |format|
if @feed.save
format.html { redirect_to '/', notice: 'Feed was successfully created.' }
format.html { redirect_to '/', notice: 'Feed added OK' }
format.json { render json: @feed, status: :created, location: @feed }
else
format.html { render action: "new" }
@@ -61,7 +61,7 @@ class FeedsController < ApplicationController

respond_to do |format|
if @feed.update_attributes(params[:feed])
format.html { redirect_to @feed, notice: 'Feed was successfully updated.' }
format.html { redirect_to @feed, notice: 'Feed updated OK' }
format.json { head :no_content }
else
format.html { render action: "edit" }


Chargement…
Annuler
Enregistrer