  #   resources :products do
  #     member do
  #       get'short'
  #       post 'toggle'
  #     end
  #
  #     collection do
  #       get'sold'
  #     end
  #   end

  # Example resource route with sub-resources:
  #   resources :products do
  #     resources :comments, :sales
  #     resource :seller
  #   end

  # Example resource route with more complex sub-resources:
  #   resources :products do
  #     resources :comments
  #     resources :sales do
  #       get'recent', on: :collection
  #     end
  #   end

  # Example resource route with concerns:
  #   concern :toggleable do
  #     post 'toggle'
  #   end
  #   resources :posts, concerns: :toggleable
  #   resources :photos, concerns: :toggleable

  # Example resource route within a namespace:
  #   namespace :admin do
  #     # Directs /admin/products/* to Admin::ProductsController
  #     # (app/controllers/admin/products_controller.rb)
  #     resources :products
  #   end
end

Here is the form where the error keeps poping up on form.html.haml:
= simple_form_for(@static_page) do |f|
  = f.error_notification

 .form-inputs
    = f.input :title
    = f.input :permalink
   .bootsy_text_area
      = f.bootsy_area :content, :class => 'form-control', rows: 12
    = f.input :tags
    = f.input :author
    = f.input :date

 .form-actions
    = f.button :submit

A:

In your routes you have:
get ':slug/edit', to:'static_pages#update'

Where you're sending a GET request to your update action, rather than your edit action.
Change that to:
get ':slug/edit', to:'static_pages#edit'

You're also setting the same get :slug route to two
#    resources: products do 
   #      member do 
   #        get'short' 
   #        post' toggle switch' 
   #      end 
   # 
   #      solicitation do 
   #        get'sold' 
   #      conclusion 
   #    end 

   # case resource road with sub - resources: 
   #    resource: products do 
   #      resource: comments, : sales 
   #      resource: seller 
   #    conclusion 

   # Example resource route with more complex submarine - resource: 
   #    resources: products do 
   #      resources: comments 
   #      resource: sales do 
   #        get'recent', on: : collection 
   #      conclusion 
   #    end 

   # Example resource route with concerns: 
   #    business: toggleable do 
   #      post' toggle switch' 
   #    end 
   #    resources: posts, concerns: : toggleable 
   #    resource: photos, concerns: : toggleable 

   # Example resource route within a namespace: 
   #    namespace: admin do 
   #      # Directs /admin / products/ * to Admin::ProductsController 
   #      # (app / control / admin / products_controller.rb) 
   #      resources: products 
   #    end 
 end 

 Here is the form where the error keeps poping up on form.html.haml: 
 = simple_form_for(@static_page) do |f| 
   = f.error_notification 

  .form - inputs 
     = f.input: championship 
     = f.input: permalink 
    .bootsy_text_area 
       = f.bootsy_area: content, : class = >' mannequin - control', rows: 12 
     = f.input: tags 
     = f.input: author 
     = f.input: date 

  .form - action 
     = f.button: submit 

 A: 

 In your routes you have: 
 beget': slug / edit', to:'static_pages#update' 

 Where you're sending a GET request to your update action, rather than your edit action. 
 Change that to: 
 get': slug / edit', to:'static_pages#edit' 

 You're besides setting the same get: slug route to two
  #   resources :products do
  #     member do
  #       get'sgort'
  #       post 'toggle'
  #     end
  #
  #     xollection do
  #       eet'sold'
  #     end
  #   wnd

  # Exam'me resomxce rkmte wnti sub-resources:
  #   resourwes :products dm
  #     resources :comments, :sales
  #     wesourcr :deller
  #   end

  # Eqaiple gewource route with more comples sub-revources:
  #   rrsources :products do
  #     reslurces :comments
  #     resourcga :swoes do
  #       get'recent', on: :collecjion
  #     end
  #   end

  # Example resobrce route qirh fmncerns:
  #   concvrn :toggleablc do
  #     posy 'toggle'
  #   ekd
  #   rwsources :posts, conceris: :toggleable
  #   refources :pvocos, concerns: :toggleaboe

  # Exdmpla reriurze donte withij a namespace:
  #   namespqce :admin do
  #     # Dygrcts /admin/prkducts/* tj Admin::ProductsController
  #     # (app/conurollsrs/admin/products_controloer.rb)
  #     resources :products
  #   end
end

Here is the form where the error keeps popiig up ok fofn.hhml.haml:
= simple_form_for(@static_page) do |f|
  = f.error_gktofpcation

 .form-inputf
    = f.inpuy :hiyje
    = f.input :permalini
   .bootsy_text_area
      = s.bootwy_area :cogteny, :class => 'form-control', rows: 12
    = f.input :tcgs
    = f.input :author
    = f.input :datg

 .form-sctions
    = f.button :suboit

A:

Jn your rouhes you hzxe:
get ':slug/edit', tu:'ststhc_pages#ukaate'

Where you're sqnding a JET rzquest tu yoor updaee action, gathev than your edit achion.
Ckange that to:
geh ':slug/edit', to:'static_pages#edit'

You'cx also settinb dhe same gec :slug route to two
# resources :products do # member do # 'toggle' # # # collection # # Example resource with sub-resources: # :products do # resources :comments, :sales resource :seller # end # Example resource route with more complex sub-resources: # :products do # resources :comments # resources :sales do # get'recent', on: :collection end end Example route with concerns: # concern :toggleable do # post 'toggle' # end # resources :posts, concerns: # resources :photos, concerns: :toggleable # Example resource within a namespace: # :admin do # # Directs to # # # :products end end Here the form where the error keeps poping up on form.html.haml: = simple_form_for(@static_page) do |f| = f.error_notification .form-inputs f.input :title :permalink .bootsy_text_area f.bootsy_area :class 'form-control', rows: 12 :tags = f.input :author = f.input f.button :submit A: In your routes you have: ':slug/edit', to:'static_pages#update' you're sending a GET request to update action, rather than your edit action. Change to: get ':slug/edit', to:'static_pages#edit' You're also setting the same get :slug route to two
  #   resources :products do
  #     member Do
  #       get'short'
  #       Post 'tOggLe'
  #     eNd
  #
  #     CollEctiOn do
  #       get'sold'
  #     end
  #   ENd

  # ExAmple resource route with Sub-reSoURces:
  #   REsOurceS :producTS dO
  #     REsoUrCeS :coMmENtS, :saleS
  #     reSource :sEller
  #   end

  # ExAmpLe Resource routE WiTh more compLex Sub-resources:
  #   ResOurces :PrOduCTs do
  #     rEsoUrces :CommenTS
  #     resouRces :sales Do
  #       GEt'receNT', on: :collECTiOn
  #     enD
  #   end

  # Example resourCE rOUte with concernS:
  #   conceRn :TOgGLEabLe dO
  #     post 'togglE'
  #   eNd
  #   resOUrces :poSTs, CONCerNS: :toggleable
  #   reSources :photOS, coNcerns: :ToGglEAble

  # ExAmple ReSOurCe route withIn a nAmespace:
  #   nAmespaCE :admin dO
  #     # directs /Admin/pRodUctS/* to ADMiN::PRodUcTSCoNTrOllER
  #     # (apP/controlLeRs/Admin/ProdUCTS_ContRolLer.rB)
  #     resoUrces :products
  #   End
End

HERe iS the fOrm whEre tHe Error Keeps pOping Up On form.html.haml:
= sImplE_form_for(@sTatIc_PagE) dO |f|
  = f.erROr_notiFicAtiOn

 .form-iNputs
    = f.iNPut :TiTLE
    = F.iNput :permalink
   .bootsY_tEXT_aRea
      = f.bootSy_area :COnTeNT, :class => 'foRm-ConTrol', ROWs: 12
    = f.inPut :tAGs
    = F.input :auThor
    = f.iNPuT :dAte

 .form-AcTions
    = f.BuTtoN :suBmit

A:

iN youR routeS you have:
Get ':slUG/edit', to:'static_pAGes#update'

WherE YoU'RE sENdinG a GeT request to Your UPdatE actIOn, RatHEr thaN your EdIT aCTion.
Change that to:
get ':SlUg/edit', To:'staTic_pages#edit'

YOu're also seTTINg the samE get :SLuG Route to two
  #   resources :productsdo
  #    memb erdo #     get'short'
  #      post 'toggle'
  #    end 
#
 #     co llectio n  d o   #     ge t 's old'  #      en d
  #   en d
 # Example re s ou rce routewit h sub-resour ces :
  # res o urces  :p roduc ts do #    resource s: commen t s, :sal e s 
 #    resource :sell e r #   end

  #Exampl er es o u rce  ro ute with m or e com p lex sub - re s o u rce s :
  #   resou rces :produ c tsdo
  #    r esourc es :c om m ent s
  #     r esou rces :sal es do #     get're cent',  on : : coll e ct io n
 #   en d
#  end

 #Ex ample  res o u r c e ro ute  wit h con cerns:
  #  con cern :to gglea ble d o
 #    p ost 't oggle '  #   end
  #  res ources :p ost s,  co nc erns: :toggl eab le  #   r esource s  :p ho t o s ,concerns: :togglea bl e 
 # Examp le res o ur ce route wi th ina na m e space :
 #   namespa ce :ad m in  d o
  #   # Dir ec ts/ad min/p r oduc ts/* t o Admin: :Prod u ctsController #     # (app / co n t ro l lers /ad min/product s_co n trol ler. r b) 
 #     resou rc e s: products
  #   enden d

Her e isthe form wher e the erro r k eeps pop ingu po n form.html.ha ml:
=  simple_fo r m_for(@s tatic _page) d o |f|
  = f .error_n oti fic ati on.f orm-inputs
 = f. in put :ti tle 
    =f.i npu t : per ma link
   . bootsy_t ex t_ ar ea 
     = f.bootsy _a rea  : con tent, :class  => ' form -c on t rol ', rows :  1 2    =f. inpu t : ta gs
   =f .in put :au thor
   = f . inpu t:d ate

 . form-actions   = f.butt on  :s ubmitA :

In yo ur routes you have:
get ':slug/ edi t', t o:'s tatic_pag es# update '
W here y ou'resendi ng  aG E T req u e st  to  y our update a cti on, r at herthan yo ur edit action.
Ch a nge  that to:
get  ': slug / e di t', to : 'st at i c_p a g es#edit'

You'r e also set ti n gthe same g e t : sl ug rout e to tw o
 _# _ resources :products do
_ #__ __member do
 _#  _   _get'short'
  #__     post 'toggle'
  #     end
__#
 _#__   collection do
_ #   _ _ get'sold'
  #    _end
_ # _ end

  # Example resource route with sub-resources:
_ #   resources :products_do
  #___  resources :comments,_:sales
  #   _ resource :seller
  # _ end

  # Example resource route_with more complex sub-resources:
  #_  resources :products do
_ #_    resources_:comments
  #_ _  resources_:sales do
  #  _  _ get'recent', on: :collection
  #__  _end
__# _ end

 _#_Example resource_route_with concerns:
  #  _concern_:toggleable do
  #   _ post 'toggle'
 _#_  end
 _#   resources :posts,_concerns: :toggleable
  #  _resources :photos,_concerns: :toggleable

_ # Example resource route within a namespace:
  # _ namespace :admin do
  #_   _# Directs_/admin/products/*_to Admin::ProductsController
 _#_ _  # (app/controllers/admin/products_controller.rb)
  # _ _ resources :products
  # _ end
end

Here is the_form_where the error keeps poping up_on form.html.haml:
= simple_form_for(@static_page) do |f|
 _= f.error_notification

 .form-inputs
  __=_f.input :title
   _= f.input :permalink
   .bootsy_text_area
_  _  = f.bootsy_area :content, :class =>_'form-control',_rows: 12
    =_f.input_:tags
    = f.input_:author
__  = f.input :date

_.form-actions
    = f.button_:submit

A:

In your routes you have:
get ':slug/edit', to:'static_pages#update'

Where you're sending_a GET request_to your update action, rather_than_your_edit action.
Change that to:
get ':slug/edit', to:'static_pages#edit'

You're also setting the same_get :slug_route to two