search for: _cart

Displaying 6 results from an estimated 6 matches for "_cart".

Did you mean: cart
2007 May 30
2
Depot - empty_cart with ajax
...ated an AJAX application.". 10 seconds after seeing with my own eyes that it worked right, i tried the "empty cart" button, and it didnt update my sidebar. It reloaded the whole page! The I decided to implement the empty cart button with Ajax. Here''s what i did: 1) In "_cart.rhtml" partial, I replaced the line: <%= button_to "Empty cart" , :action => :empty_cart %> with: <% form_remote_tag :url => { :action => :empty_cart } do %> <%= submit_tag "Empty Cart" %> <% end %> After that, i tried everything that...
2012 Sep 01
4
Basic Paypal
...cart.paypal_url() %> undefined method `paypal_url'' for nil:NilClass despite i have this code in my model called Card Cart Model: class Cart < ActiveRecord::Base def paypal_url(return_url) values = { :business => '''', :cmd => ''_cart'', :upload => 1, :return => return_url, :invoice => id } line_items.each_with_index do |item, index| values.merge!({ "amount_#{index+1}" => 500, "item_name_#{index+1}" => car, "item_number_#{index+1}" => 5...
2011 Aug 02
1
NoMethodError in Store#index
...<td><%= line_item.quantity %>&times;</td> 9: <td><%= line_item.product.title %></td> 10: <td class="item_price"><%= number_to_currency(line_item.total_price) %></td> 11: </tr> Trace of template inclusion: app/views/carts/_cart.html.erb, app/views/layouts/application.html.erb Rails.root: C:/rails/shop9 Application Trace | Framework Trace | Full Trace app/views/line_items/_line_item.html.erb:9:in `_app_views_line_items__line_item_html_erb__441883346_13180080__860564653'' app/views/carts/_cart.html.erb:3:in `_app_...
2006 Jun 23
3
Help Analyzing The Log...(first time newbie)
...selecting from the DB or does it just say it executed it? Rendering within layouts/store Rendering store/index /^ gonna guess this rendered ok. [4;36;1mProduct Columns (0.010000) [0;1mSHOW FIELDS FROM products /^ still dont know what this ESC means - the square with the [0 Rendered store/_cart_item (0.00000) Rendered store/_cart (0.01000) I''m not even sure if it made an AJAX request. and/or even got a responce. May I please get a ''daRubi deCoder'' on this? Thanks a micro billion. Dominic -- Posted via http://www.ruby-forum.com/.
2006 Aug 16
2
Q on AJAX with respect to DRY
I have a shopping cart function, and I''d like to set it up to update the cart with AJAX. My AJAX call will return a view that displays the cart items. My question is with regards to keeping things DRY. When the user goes to "view cart", that page needs to display the cart, then the cart display needs to update with AJAX calls when items are added from that page. It would
2006 May 24
22
Components going out of style?
I see in the new Agile Rails 2nd edition that components are going out of style? Is this so? has anybody abandoned the idea of components for helpers? Specifically I''m considering a menu sytem for a website that depends heavily on the users permissions to decide which menu options a user would need to see. I thought that components, since they have the logic in the controller and