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

Popular posts from this blog

shopping cart - Page redirect not working PHP -

php - How to modify a menu to show sub-menus -

python - Installing PyDev in eclipse is failed -