# Cookbook example in InstantRails

**URL:** <https://www.ruby-forum.com/t/cookbook-example-in-instantrails/98255>\
**Category:** Ruby\
**Created:** [July 13, 2006, 3:17pm UTC](https://www.ruby-forum.com/t/cookbook-example-in-instantrails/98255 "2006-07-13T15:17:15Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![ike](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/df705f/32.png) [@ike](https://www.ruby-forum.com/u/ike)\
**Post date:** [July 13, 2006, 3:17pm UTC](https://www.ruby-forum.com/t/cookbook-example-in-instantrails/98255/1 "2006-07-13T15:17:15Z")

</div>

I’m trying to follow along with the code in the cookbook example  
provided in  
InstantRails. I can look at the php db structure through phpMyAdmin, but  
I  
cannot seem to find the .rb code that really does anything in this  
example.  
I’m looking in \rails\_apps\cookbook… but cannot seem to find anything  
other than some rb files of just a few lines; I’m trying to find some  
real  
code here so I can get a handle on this as a newbie (having just sat  
through  
a Java Server Faces presentation last night, I am totally convinced ruby  
is  
the way to do this!).

Can someone point me in the right direction here to actually look at  
some  
example code here that does something? Thanks, Ike

---

<div class="post-metadata">

**Author:** ![ike](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/df705f/32.png) [@ike](https://www.ruby-forum.com/u/ike)\
**Post date:** [July 13, 2006, 3:46pm UTC](https://www.ruby-forum.com/t/cookbook-example-in-instantrails/98255/2 "2006-07-13T15:46:40Z")

</div>

On Jul 13, 2006, at 9:15 AM, Ike wrote:

> I’m trying to follow along with the code in the cookbook example  
> provided in  
> InstantRails. I can look at the php db structure through  
> phpMyAdmin, but I  
> cannot seem to find the .rb code that really does anything in this  
> example.  
> I’m looking in \rails\_apps\cookbook.. but cannot seem to find  
> anything  
> other than some rb files of just a few lines;

That’s the beauty part, you only need a few lines for basic stuff  
like this example 🙂

> I’m trying to find some real  
> code here so I can get a handle on this as a newbie (having just  
> sat through  
> a Java Server Faces presentation last night, I am totally convinced  
> ruby is  
> the way to do this!).
> 
> Can someone point me in the right direction here to actually look  
> at some  
> example code here that does something? Thanks, Ike

You’ll probably find help on the rails mailing list: http://  
[lists.rubyonrails.org/mailman/listinfo/rails](http://lists.rubyonrails.org/mailman/listinfo/rails)  
or the IRC channel: #rubyonrails on [irc.freenode.net](http://irc.freenode.net)

Try to be a bit more specific about your problem in either/both of  
these places, and I’m sure you’ll find your answer.  
-Mat

---

<div class="post-metadata">

**Author:** ![ike](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/df705f/32.png) [@ike](https://www.ruby-forum.com/u/ike)\
**Post date:** [July 13, 2006, 3:59pm UTC](https://www.ruby-forum.com/t/cookbook-example-in-instantrails/98255/3 "2006-07-13T15:59:48Z")

</div>

Mat S. wrote:

> That’s the beauty part, you only need a few lines for basic stuff like  
> this example 🙂

As as example, try looking in  
\rails\_apps\cookbook\app\controllers\recipe\_controller.rb for a fairly  
typical introduction to controller code.

> You’ll probably find help on the rails mailing list:  
> [http://lists.rubyonrails.org/mailman/listinfo/rails](http://lists.rubyonrails.org/mailman/listinfo/rails)  
> or the IRC channel: #rubyonrails on [irc.freenode.net](http://irc.freenode.net)

Is it just me, or are there suddenly more Rails questions popping up  
here over the past few days?

---

<div class="post-metadata">

**Author:** ![ike](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/df705f/32.png) [@ike](https://www.ruby-forum.com/u/ike)\
**Post date:** [July 13, 2006, 4:41pm UTC](https://www.ruby-forum.com/t/cookbook-example-in-instantrails/98255/4 "2006-07-13T16:41:24Z")

</div>

Hi –

On Thu, 13 Jul 2006, Mat S. wrote:

> On Jul 13, 2006, at 9:58 AM, Alex Y. wrote:  
> [snip: instant rails question]
> 
> > Is it just me, or are there suddenly more Rails questions popping up here  
> > over the past few days?
> 
> I’ve noticed a surge shortly after the Wired (I think. Didn’t read it.) and  
> Linux Journal coverage. I’m sure we’re gonna see more as Rails gains  
> popularity.

And the Slashdot review of “Ruby for Rails”, in the wake of which said  
book is #1 in the Programming subcategory at Amazon. And we have 3 or  
4 Ruby/Rails books in the top 25 or so (R4R, Pickaxe, Agile, Recipes).

David (disinterested third party 🙂

---

<div class="post-metadata">

**Author:** ![ike](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/df705f/32.png) [@ike](https://www.ruby-forum.com/u/ike)\
**Post date:** [July 13, 2006, 5:07pm UTC](https://www.ruby-forum.com/t/cookbook-example-in-instantrails/98255/5 "2006-07-13T17:07:19Z")

</div>

removed\_email\_address@domain.invalid wrote:

> >

Speaking of which … there’s a _reason_ “Ruby for Rails” is the number  
one. It’s the best Ruby/Rails programming book out there! As most of you  
know, I’ve been programming a long time and have been a serious student  
of the craft in general and programming languages for most of that time.  
Given all of that experience, for some reason, I’ve really been  
struggling with Ruby and Rails. This book is _exactly_ what I needed to  
be able to work with these technologies.

Don’t get me wrong … Pickaxe, AWDR and Recipes are all great … all  
well written … all necessary … and all sitting on my hard drive. 🙂  
But “Ruby for Rails” has everything I _need_ to know about the syntax  
and semantics of these two rather intricate and intertwined  
technologies. Thank you, DIsinterested David! 🙂

---

<div class="post-metadata">

**Author:** ![ike](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/df705f/32.png) [@ike](https://www.ruby-forum.com/u/ike)\
**Post date:** [July 13, 2006, 4:16pm UTC](https://www.ruby-forum.com/t/cookbook-example-in-instantrails/98255/6 "2006-07-13T16:16:13Z")

</div>

On Jul 13, 2006, at 9:58 AM, Alex Y. wrote:  
[snip: instant rails question]

> Is it just me, or are there suddenly more Rails questions popping  
> up here over the past few days?

I’ve noticed a surge shortly after the Wired (I think. Didn’t read  
it.) and Linux Journal coverage. I’m sure we’re gonna see more as  
Rails gains popularity.  
-Mat

---

<div class="post-metadata">

**Author:** ![ike](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/df705f/32.png) [@ike](https://www.ruby-forum.com/u/ike)\
**Post date:** [July 13, 2006, 9:21pm UTC](https://www.ruby-forum.com/t/cookbook-example-in-instantrails/98255/7 "2006-07-13T21:21:00Z")

</div>

Took you guys’ advice and went out and bought R4R.

Spent last night listening to a Java Server Faces talk, pros & cons vs.  
Struts. Am completely cvonvinced Ruby on Rails is the way to go now.  
Thanks  
for all your input -Ike
