The embedded ruby code in my view is...
<p id="notice"><%= notice %></p>
but when the URL reads...
http://0.0.0.0:3000/projects/3?notice=Project+was+successfully+created
the generated HTML is...
<p id="notice"></p>
I'm expecting it to read...
<p id="notice">Project was successfully created</p>
What gives?
EDIT: Here's my controller code just to ease any curiosity..
def create
@project = Project.new(params[:project])
respond_to do |format|
if @project.save
format.html { redirect_to(:action => "show", :id => @project, :notice => 'Project was successfully created.') }
format.xml { render :xml => @project, :status => :created, :location => @project }
else
format.html { render :action => "new" }
format.xml { render :xml => @project.errors, :status => :unprocessable_entity }
end
end
end
Thanks so much!