Possible Minor Code Typos

43 views
Skip to first unread message

Jordan Nelson

unread,
Sep 17, 2015, 9:00:52 PM9/17/15
to Objects on Rails
Hi all, 
   Love this book.  I am using Ruby 2.2.0 and Rails 4.2.1

On page 53, I could not get the correct JSON until I changed Posts # up to 

def up 
   Blog
end    

Instead of lowercased blog  

Also on that same page,  Rails seemed to be looking for a blogs_url helper   def blogs_url(*)  ... instead of blog_url(*).
Once I made those minor changes, everything was perfect!

Thanks Avdi and friends.
   -Jordan Nelson
Reply all
Reply to author
Forward
0 new messages