Hello, Hello
I have very strange problem, when i try to edit or create a big text
have this error
"Routing Error
no route found to match "/error.php" with {:method=>:get}"
When i user the console it''s work
I have this problem on my server of production
Can you help me
def create
@enseignement = Enseignement.new(params[:enseignement])
@enseignement.save!
flash[:notice] = ''Enseignement a été ajouté.''
redirect_to enseignement_url(:id => @enseignement)
rescue ActiveRecord::RecordInvalid
render :action => :new
end
def update
@enseignement = Enseignement.find(params[:id])
if @enseignement.update_attributes(params[:enseignement])
flash[:notice] = ''Enseignement a été modifié.''
redirect_to enseignement_path(:id => @enseignement)
else
render :action => "edit"
end
end
--~--~---------~--~----~------------~-------~--~----~
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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---