This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <%= form_for(@user_product) do |f| %> | |
| # This line is the virtual attribute base on a product_id and then the "data-pre" maps to my ProductsController/Application.js for the /products.json route. | |
| # Its for seeing the Product on the Edit form, it has to be found. | |
| <%= f.text_field :product_token, "data-pre" => @products.map(&:attributes).to_json %> | |
| <%= f.label :price %><br /> | |
| <%= f.text_field :price %> | |
| <%= f.submit %> | |
| <% end %> |
NewerOlder