Hi, Need some clarifications about a line in the book, Agile Web Development 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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
On Sep 27, 2006, at 11:30, P.V.Anthony wrote:> 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?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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
On this day, 28-September-2006 10:59 AM, Dave Thomas wrote:> > On Sep 27, 2006, at 11:30, P.V.Anthony wrote: > >> 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? >> > > 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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
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. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
On this day, 29-September-2006 3:19 AM, Dave Thomas wrote:> > 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.Thank you very much for the reply. P.V.Anthony --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
Dave, it is time to rename your book to Rails Bible or Koran or something... --- Dave Thomas <dave-kbbdpT5sCmpWk0Htik3J/w@public.gmane.org> wrote:> > ''a'' is the article. >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
How about "Rails Enlightenment"? On 9/28/06, Bala Paranj <bparanj-/E1597aS9LQAvxtiuMwx3w@public.gmane.org> wrote:> > > Dave, it is time to rename your book to Rails Bible or Koran or > something... > > --- Dave Thomas <dave-kbbdpT5sCmpWk0Htik3J/w@public.gmane.org> wrote: > > > > ''a'' is the article. > > > > > > >-- Terry (TAD) Donaghe http://www.rubynoob.com http://www.tadspot.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
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 -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
On Sep 29, 2006, at 10:19, Bill Devaul 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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
I like Holy Rails Bible or Holy Rails Koran. --- Terry Donaghe <terry.donaghe-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> How about "Rails Enlightenment"?--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
Bala Paranj wrote:> I like Holy Rails Bible or Holy Rails Koran. > > --- Terry Donaghe <terry.donaghe-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > >> How about "Rails Enlightenment"?How about ''Rails Sutra'' ;-) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
Religion is vastly overrated. - Although: It scales pretty good. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---