Routing Error

Subscribe to Routing Error 1 post, 1 voice

 
Avatar bolo 21 posts

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 use the console it’s work

I have this problem only on positron.

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