Created
April 5, 2012 08:38
-
-
Save garethrees/2309215 to your computer and use it in GitHub Desktop.
Flash outputs random 0
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
= if notice | |
#notice | |
%p | |
= notice |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%h2.breadcrumb | |
= link_to 'Sites', admin_sites_path | |
= render :partial => "shared/noticedisplay" | |
%h1 Sites (Campuses) #{link_to_icon 'add', new_admin_site_path} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h2 class="breadcrumb"> | |
<a href="/admin/sites">Sites</a> | |
</h2> | |
<div id="notice"> | |
<p> The testy campus was successfully created. </p> | |
</div> | |
0 | |
<h1> | |
Sites (Campuses) | |
<a class="icon add_icon" href="/admin/sites/new"> | |
<img src="/images/icons/add.png?1333534032" alt="Add"> | |
</a> | |
</h1> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def create | |
@site = Site.new(params[:site]) | |
if @site.save | |
redirect_to(admin_sites_path,:notice => ["The "+@site.name+" campus was successfully created."]) | |
else | |
redirect_to(admin_sites_path,:error => ["Campus creation failed!"]) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yup, that's the error. Not a bug. Blame the coder ;-)