small medium large xlarge

13 Oct 2014, 10:18
Giovanni Antonioni (1 post)

Like the title of this issue i’m trying in the interraciont 9.3 o the book to create a button that add a new line item:


<%= button_to 'Add to Cart', line_items_path(product_id: product) %>

but when i try to run it in localhost (whit rails server) the buttons doesn’t appears near the price. Whit chrome i’ve used the console and i see that the code of the form wasn’t generated

You must be logged in to comment