AWDR Book - Need clarifications

Hi,

Need some clarifications about a line in the book, Agile Web D.
with Rails 2nd Edition, the latest pdf version.

The line is “Missing: no longer true”. This can be found at pdf page 337
and book page 325. Both are the same page. It is on the side of the page
like a note.

It is about how to insert data into a relational database using has_many
with through.

I am hoping that it is saying that there is a better way to create data
into relational database. Hopefully in version 1.2 of Rails.

Any idea what the “Missing: no longer true” means?

I am new and still stuck on how to add data into relational database
using has_many :through.

Please advice.

P.V.Anthony

On Sep 27, 2006, at 11:30, P.V.Anthony wrote:

I am hoping that it is saying that there is a better way to create
data
into relational database. Hopefully in version 1.2 of Rails.

Any idea what the “Missing: no longer true” means?

It means that the Rails framework changed since I wrote that, and is
added as a note to myself to go back and update the section before
the final book is produced.

Cheers

Dave

On this day, 28-September-2006 10:59 AM, Dave T. wrote:

It is about how to insert data into a relational database using has_many

It means that the Rails framework changed since I wrote that, and is
added as a note to myself to go back and update the section before the
final book is produced.

Thanks for the reply.

I hope 1.2 has something better as I am really confused about entering
data in relational tables.

I am really confused about this part.

----------- start -----------------
u = User.create(:name => “dave” )
a = Article.create(:name => “Join Models” )

You can’t do this:

a.users.create(…)

You can do this…

a.readings.create(:user => u, :read_at => Time.now, :rating => 5) <-----
especially this part.
-------------- end ----------------

Only if you have time, please point me to some website or let me know
what the last line means. Especially why there is a letter “a” at the
start of a.readings.create(:user => u, :read_at => Time.now, :rating =>
5).

I am assuming that once “u = User.create(:name => “dave” )” is run “u”
will have a value of the user_id of “dave”. So that value goes to the
last statment. Why is the “a” at the start of the last statement.

Anyone please do assist.

P.V.Anthony

On this day, 29-September-2006 3:19 AM, Dave T. wrote:

‘a’ is the article.
Thank you very much for the reply.

P.V.Anthony

Dave, it is time to rename your book to Rails Bible or Koran or
something…

How about “Rails Enlightenment”?

On 9/28/06, Bala P. [email protected] wrote:


Terry (TAD) Donaghe
http://www.rubynoob.com
http://www.tadspot.com

On Sep 28, 2006, at 12:53, P.V.Anthony wrote:

I am assuming that once “u = User.create(:name => “dave” )” is run “u”
will have a value of the user_id of “dave”. So that value goes to the
last statment. Why is the “a” at the start of the last statement.

‘a’ is the article.

Dave,

Is there any chance the page numbering can be made to mirror the actual
page numbers? I have seen other PDFs do this. This would allow me to
see that page 300 of the book has some code I want, I go to Apple’s
Preview and open the PDF and type 300 for the page number.

It would be really nice to have this.

Thanks,
Bill

On Sep 29, 2006, at 10:19, Bill D. wrote:

Is there any chance the page numbering can be made to mirror the
actual
page numbers? I have seen other PDFs do this. This would allow me to
see that page 300 of the book has some code I want, I go to Apple’s
Preview and open the PDF and type 300 for the page number.

I’ll look in to this

Dave

Bala P. wrote:

I like Holy Rails Bible or Holy Rails Koran.

— Terry D. [email protected] wrote:

How about “Rails Enlightenment”?

How about ‘Rails Sutra’ :wink:

I like Holy Rails Bible or Holy Rails Koran.

Religion is vastly overrated. - Although: It scales pretty good.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs