# Agile ROR Reached Ch. 11, book skips two pieces I need, what

**URL:** <https://www.ruby-forum.com/t/agile-ror-reached-ch-11-book-skips-two-pieces-i-need-what/90461>\
**Category:** Rails\
**Created:** [March 29, 2007, 12:36am UTC](https://www.ruby-forum.com/t/agile-ror-reached-ch-11-book-skips-two-pieces-i-need-what/90461 "2007-03-29T00:36:47Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [March 29, 2007, 12:36am UTC](https://www.ruby-forum.com/t/agile-ror-reached-ch-11-book-skips-two-pieces-i-need-what/90461/1 "2007-03-29T00:36:47Z")

</div>

I just got to chapter 11, and I’m informed that we’ll be skipping the  
step where we would fufill the order by pulling up the customer orders  
that were entered into the database. Perhaps I’m jumping too far  
ahead (I want to right an app that’s pretty close to the book depot  
for my father’s business, and I only need to learn a few more things.  
Then I can slow down and learn ruby and rails better) but I would like  
to be able to view this data from the admin section. I would also  
like to have a few different ways to search and sort the list of books  
(it will be something different in my app) the customer sees. This  
two things don’t seem too much father advanced than where I’m at, and  
would enable me to have some fun and build an app that I could  
implement. And I would also like to have customer logins (the prices  
wouldn’t display until you signed up for an account).

So any book chapters or tutorials to find such information? I did a  
quick skim through Agile ROR and didn’t see anything. Where should I  
look? Or are these too advanced and I should slow down and just  
finish Agile ROR before starting this stuff?

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [March 29, 2007, 1:32am UTC](https://www.ruby-forum.com/t/agile-ror-reached-ch-11-book-skips-two-pieces-i-need-what/90461/2 "2007-03-29T01:32:51Z")

</div>

Ok, how about an overview of “picking ticket”? I’m guessing I want to  
display this in a similar way (as far as the code) as the way I  
display my inventory?

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [March 29, 2007, 12:54am UTC](https://www.ruby-forum.com/t/agile-ror-reached-ch-11-book-skips-two-pieces-i-need-what/90461/3 "2007-03-29T00:54:48Z")

</div>

jamesdylangoldstein wrote:

> I just got to chapter 11, and I’m informed that we’ll be skipping the  
> step where we would fufill the order by pulling up the customer orders  
> that were entered into the database. Perhaps I’m jumping too far  
> ahead (I want to right an app that’s pretty close to the book depot  
> for my father’s business, and I only need to learn a few more things.

The most important thing to do now is observe the business and ask  
what the single most important tiny feature is that you can add. For  
example, if the business has guys pulling inventory, assembling them,  
and shipping them, then after you have orders in a database, the next  
feature would be the simplest kind of “picking ticket”, essentially  
telling these guys each morning the list of orders to fulfill. Write a  
simple page to do that (with unit tests), and immediately try to get  
them to use it. If they can’t, learn what the next tiny feature is,  
and repeat until it is online.

You can’t get there in big steps. If we pointed you to this or that  
template for picking tickets, it might come with features you don’t  
need, and might not come with features that you do need.

–  
Phlip  
[http://c2.com/cgi/wiki?ZeekLand](http://c2.com/cgi/wiki?ZeekLand) ← NOT a blog!!

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [March 29, 2007, 3:16am UTC](https://www.ruby-forum.com/t/agile-ror-reached-ch-11-book-skips-two-pieces-i-need-what/90461/4 "2007-03-29T03:16:59Z")

</div>

Ok, thought about it for a few seconds: something like this?

(I have to create the necessary stuff in the css)

# Orders (Leads in my app) List
\<% for order in @orders %\> \<% end %\>

| \<%= h(order.name) %\> | \<%= link\_to 'Show', :action =\> 'show', :id =\> order %\>  
\<%= link\_to 'Edit', :action =\> 'edit', :id =\> order %\>  
\<%= link\_to 'Destroy', { :action =\> 'destroy', :id =\> order }, :confirm =\> "Are you sure?", :method =\> :post %\> |

\<%= if @order\_pages.current.previous link\_to("Previous page", { :page =\> @order\_pages.current.previous }) end %\> \<%= if @order\_pages.current.next link\_to("Next page", { :page =\> @order\_pages.current.next }) end %\>  

and then a new .rhtml page show\_customers showing all the data for  
that customer

How’s that sound? (4th day programming)

JD

On Mar 28, 7:32 pm, “removed\_email\_address@domain.invalid”

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [March 29, 2007, 6:10am UTC](https://www.ruby-forum.com/t/agile-ror-reached-ch-11-book-skips-two-pieces-i-need-what/90461/5 "2007-03-29T06:10:12Z")

</div>

jamesdylangoldstein wrote:

> Ok, how about an overview of “picking ticket”? I’m guessing I want to  
> display this in a similar way (as far as the code) as the way I  
> display my inventory?

This is what the “Agile” in your book’s title means. You go to the  
/workers/, the ones who must pick, and ask /them/ what information they  
need  
in the ticket. Then you trivially print it out into a web page. They hit  
the  
page, read the items, and pull them. Maybe they arrange them by pallets,  
with SKU numbers, or maybe not. You ask /them/ what they need. Don’t ask  
me,  
or the Daves, or anyone else. I have done picking tickets before, but I  
doubt your crew is filling orders for iced imported seafood, so I refuse  
to  
describe my tickets!

–  
Phlip  
["Pigleg too?", week 1](http://flea.sourceforge.net/PiglegToo_1.html)

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [March 30, 2007, 12:37am UTC](https://www.ruby-forum.com/t/agile-ror-reached-ch-11-book-skips-two-pieces-i-need-what/90461/6 "2007-03-30T00:37:25Z")

</div>

Ok, so I did what you suggested, two problems. And I feel like these  
are within my grasp (i.e. not 3 books and 4 weeks away).

1. I access a list of customers. Sort it by name. Click on the name  
and the information for that customer comes up. The customer  
information is stored in orders table and the specific things he  
purchased are stored in the line\_items table. Well I used the  
contraints that are suggested in the Agile book and I’m going nowhere  
fast. This works fine for the customer info:

\<% for column in Order.content\_columns %\>

**\<%= column.human\_name %\>:** \<%=h @order.send(column.name) %\>

\<% end %\>

but changing it slightly to display the line\_items affiliated with  
that customer doesn’t seem to work. So I get Title: (Blank)

1. My destroy button won’t work due to the linked relationship between  
the two tables.

Thanks,  
JD
