similar to: Probably a bad set-up but which one?

Displaying 20 results from an estimated 10000 matches similar to: "Probably a bad set-up but which one?"

2008 Oct 17
3
CGI configuration - second post
This is my second request for help with this problem. I have followed the suggestions given the first time and made some progress but I still have one final problem/question. I have two CGI scripts that don't work. One is the standard Set-Cookie, examples can be found all over the net, that sets a cookie and prints "Your cookie name is set." The other is an automatic
2005 Jul 20
1
RE: Rails-spinoffs Digest, Vol 2, Issue 22
Hi Jonah, I support usability. For a great book on it, read Jakob Nielsen''s "Designing Web Usability: The Practice of Simplicity" and, for a great general book on usability, try "The Design of Everyday Things." You''re right. Drag ''n drop is not the best tool for many things. Unless something offers a 50%+ advantage over an existing method of doing
2007 Aug 17
1
Need volunteers for new Rails based shopping cart
We''re currently looking for volunteers on the new RailsCart[1] project. The idea is to build something relatively simple with all of the features that most open source shopping carts seem to be missing. We''ll be using ActiveMerchant for all of our payment gateway needs. We''re not trying to build the ultimate shopping cart. This is designed for Rails developers who need
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 Jan 20
1
[protoype] Problem with Effects on draggable element if revert is true
hi, I have a draggable element (cart-item) in a shopping cart <%= draggable_element "item_#{product}_#{i}", :revert => true %> When this element is dragged outside the cart into the "main_div", I want to show a puff effect and remove the element. When it is dragged within the cart, it should revert. So i wrote this code for drop_receiving _element <%=
2006 Apr 18
6
Best Practice for Returning to Calling Page?
I have a partial, it''s a shopping cart display, it''s designed to appear on several different pages of my site. One of the buttons on the shopping cart empties the cart, and then I want the calling page to redisplay. In other words, the cart controller needs to return the visitor to the same page -- however since the cart could appear on any given page, this has to be
2005 Oct 05
3
Shopping Cart: SKU and Product Confusion
Hi there, I''m at a loss... I was on the #ROR channel last night and spoke to a really helpful person (Defiler) who gave me some direction on building a shopping cart. Unfortunately, I wasn''t able to successfully get to where I need to go. This is the predicament I am currently finding myself in: I''m building a shopping cart for a client''s new website. They
2007 Oct 18
0
REST help
Hi all, I am trying to build a RESTful shopping cart and I have hit a small wall, but before I get to that let me explain what I have done thus far. I have two RESTful controllers, CartController and CartItemsController with a nested routes setup like so map.resources :carts do |carts| carts.resources :cart_items, :collection => {:empty => :delete} end (I added a custom route to
2006 Apr 18
1
''depot''app, trouble with session / cookies
Many of you probably know the ''depot'' app from the ''Agile Rails development'' book. When the view changes from ''Store'' to ''display_cart,'' a session containing the shopping-cart (:cart) is supposed maintain the ''cart'' between calls, but when the display_cart stub view shows up, I have always ZERO elements
2005 Dec 14
9
Passing quantity in a shopping cart
I am using this line on my index.rhtml page to capture the quantity required of a particular item for a basic shopping cart app: <%= text_field ''line_item'', ''quantity'', {:size=>3} %> </td> but my next screen (a cart screen) doesn''t reflect what was entered in that text field when the item is added to the cart. That is,
2005 Nov 25
4
BlindDown recommendations?
Hi folks, I''m putting together a site that will have a shopping cart tab along the top which, when clicked, slides down to reveal the full contents of the cart (covering the page underneath it). When designing it and getting the styling right, I had the page display the cart fully open by default. This worked fine - the cart can close and open any number of times without problem[1].
2006 Feb 26
0
NoMethodError in Agile Web Devleopment Depot Tutorial
I''m working on building the shopping cart in the Depot tutorial in the Agile Web Development book. I''m at the part (about page 80) where you build the ability to add items to the cart. I''m able to get to /store/display_cart/ and it seems items are being added, but if I just click on a link to add an item (/store/add_to_cart/2) it gives me this: NoMethodError in
2006 Jul 24
1
Newbie error: undefined local variable or method
When I add an item to the shopping cart, I get an error: undefined local variable or method `cart_item'' for #<#<Class:0x3715a78>:0x3715a48> Session info says the cart being updated properly. I''m just not able to output two variables: <%= cart_item.quantity %> &times; <%= h(cart_item.title) %> I did some research, and I can grasp that local
2005 Mar 06
12
Where to place custom classes?
Hi all, I am writing a simple shopping cart which will consist of a single class. There will be no DB table for carts so I do not want to make my Cart a model. But where do I place my Cart class so that I can access it in my controllers? I want to be able do do things like this (for instance in a shop controller): def add_to_cart @session[''cart''].add(article_id, amount)
2006 Jul 10
2
cross controller functional tests?
Hi, I have an online store and I would like to simulate a complete shopping trip which involves several controllers? How can I write a test that calls actions from different controllers in a particular sequence? Something like the following which involves department, product, cart_item, and cart controllers. get department 5 check it has a link to product 4 get product 4 post cartitem/create get
2006 Apr 27
2
''Agile Web Development'' book
I just started to learn RoR because I need to create a relatively simple but important application due next month. The Shopping cart app in this book is going ok but I have a question. Is the complexity of the shopping cart example in this book representitive of a real world application? Note that i am not saying if the application is production quality, I mean the
2007 Jun 06
0
uninitialized constant Cart::CartItem
I am following a tutorial and get thar error creating a cart, and can''t figure it out, uninitialized constant Cart::CartItem Extracted source (around line #8): 5: <h3>Your Shopping Cart</h3> 6: 7: <ul> 8: <% for item in @cart.cart_items %> 9: <li id="cart_item_<%= item.book.id %>"> 10: <%= render :partial =>
2006 Jan 20
3
Website running slow and Timing Out, but at random...
I have a site running the current version of Centos 4.2, it has a shopping cart running on it and runs slow and times out at random. The cart is a simple php package using a MySQL database backend. Can any one think of ways to improve the speed in MySQL and Apache, I've had the cart checked by the software vendor, it's working like it should, they are pointing to MySQL or Apache and
2006 May 25
2
Design question
Hi, I am really enjoying the experience of writing my first web app in Rails. I particularly like the instant feedback the framework offers when developing in small increments and I am learning new things all the time. However since I develop alone and my inexperience with rails I?m asking for help to answer some design questions that I have regarding my first app. After reading the Agile
2006 Jul 20
2
Carrying model date from one page to the next
I am working on a crude first-go-round-in-rails shopping cart and can''t figure out for the life of me the best way to do this. I have a shopping cart that has one page during the checkout that handles the address information, then the next handles the actual credit card information. How do I take the information from the address form and keep it alive long enough to put it in to