[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

cookbook example in InstantRails

Ike

7/13/2006 1:13:00 PM

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


6 Answers

Mat Schaffer

7/13/2006 1:45:00 PM

0

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
or the IRC channel: #rubyonrails on 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


Alex Young

7/13/2006 1:58:00 PM

0

Mat Schaffer wrote:
> 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 :)
>
As as example, try looking in
\rails_apps\cookbook\app\controllers\recipe_controller.rb for a fairly
typical introduction to controller code.

>> 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/list...
> or the IRC channel: #rubyonrails on irc.freenode.net

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

--
Alex

Mat Schaffer

7/13/2006 2:14:00 PM

0


On Jul 13, 2006, at 9:58 AM, Alex Young 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

dblack

7/13/2006 2:40:00 PM

0

M. Edward (Ed) Borasky

7/13/2006 3:05:00 PM

0

dblack@wobblini.net wrote:
> Hi --
>
> On Thu, 13 Jul 2006, Mat Schaffer wrote:
>
>>
>> On Jul 13, 2006, at 9:58 AM, Alex Young 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 :-)
>
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! :)



Ike

7/13/2006 7:18:00 PM

0

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