Diogo Delgado wrote:
> The fork code is available at: http://github.com/DBA/authlogic_openid
I'm taking a look at the automatically generated content:
def create
@report = Report.new(params[:report])
respond_to do |format|
if @report.save
flash[:notice] = 'Report was successfully created.'
format.html { redirect_to(@report) }
format.xml { render :xml => @report, :status => :created,
:location => @report }
else
format.html { render :action => "new" }
format.xml { render :xml => @report.errors, :status =>
:unprocessable_entity }
end
end
end
Why don't you let your code look a little more like that, and let us
know?
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.