search for: pending_order

Displaying 4 results from an estimated 4 matches for "pending_order".

Did you mean: pending_orders
2010 Feb 22
9
Couldn't find Order with ID=pending_orders
I have a Controller named Orders which has a pending_orders method which is expected to fetch some records from the database. If i dont write a route for this method, I get the following error when i call this method. Couldn''t find Order with ID=pending_orders I am using rails 2.3.5, in the previous versions i use to get this I am not getting wh...
2005 Dec 23
5
Can''t get data from products into @order
...line.image_url %> </td> I''m recieving this error undefined method `image_url'' for #<Order:0xb77ee194> I call the partial with: <table cellpadding="5" cellspacing="0"> <%= render(:partial => "order_line", :collection => @pending_orders) %> </table> Here is how I get @pending_orders @pending_orders = Order.pending_shipping and finally my order class class Order < ActiveRecord::Base has_many :line_items # function to retrieve all orders that haven''t been marked as shipped yet. # this allows us to se...
2005 Dec 18
3
undefined local variable in partial
...gt;<%= h(order_line.name) %></div> 14: <div class="oladdress"><%= h(order_line.address) %> </div> 15: </td> The partial is called from within a view (ship.rhtml): <%= render(:partial => "order_line", :collection => @pending_orders) %> The PragProg-Rails book explains the following: ''''The order_line parameter also tells Rails to set a local variable called order_line to the value of the order currently being rendered. This variable is available only inside the partial template.'''' So...
2006 Feb 09
13
Howto work with a page not generated by the scaffold ?
I am a newbie Ruby and RoR user. In my tests using the turorials that I found over the web, everthing is working fine and I am very impressed about RoR framework. As I am a Delphi developer, without any web development experience, There is some thing hard to understando and I didn''t find a tutorial about this. I wonder how to create a non-scaffold page ? I have customers,