Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Flashes now use bootstrap syntax

  • Loading branch information...
commit 26c9bd7564f177e7262319e3c66708879f3c1e88 1 parent d21f281
@nmanzi authored
Showing with 3 additions and 6 deletions.
  1. +3 −6 app/controllers/links_controller.rb
View
9 app/controllers/links_controller.rb
@@ -45,7 +45,7 @@ def create
respond_to do |format|
if @link.save
- format.html { redirect_to links_url, notice: 'Link was successfully created.' }
+ format.html { redirect_to links_url, :flash => { :success => 'Subdomain created!' } }
format.json { render json: @link, status: :created, location: @link }
else
format.html { render action: "new" }
@@ -61,7 +61,7 @@ def update
respond_to do |format|
if @link.update_attributes(params[:link])
- format.html { redirect_to links_url, notice: 'Link was successfully updated.' }
+ format.html { redirect_to links_url, :flash => { :success => 'Subdomain updated!' } }
format.json { head :ok }
else
format.html { render action: "edit" }
@@ -77,10 +77,7 @@ def destroy
@link.destroy
respond_to do |format|
- format.html {
- flash[:notice] = "Subdomain Destroyed!"
- redirect_to links_url
- }
+ format.html { redirect_to links_url, :flash => { :success => "Subdomain Destroyed!" } }
format.json { head :ok }
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.