ruby on rails - capybara get request instead of post -
all.
i stuck capybara , rails. in view have link method: :post
= link_to t(:add_to_cart), offer_add_to_cart_path(offer), class: 'btn', remote: true, method: :post at work computer (ubuntu) specs passing ok, @ home computer (mac os x), error
failure/error: unable find matching line backtrace actioncontroller::routingerror: no route matches [get] "/offers/1/add_to_cart" when capybara
click_on t(:add_to_cart) rails (4.2.1) capybara (2.4.4) capybara-webkit (1.5.0)
Comments
Post a Comment