Closed benpoole closed 13 years ago
Seconding the problem with new_entry. (OSX 10.6.6, RockMelt browser)
benpoole, I think your attempt with BlogEntry.new should work if you replace the semicolon after :confused with a comma.
Thanks for the tip; the code I pasted in here had a typo is all—I typed in the code as one would expect in the irb pane, and it still fails (i.e. blog << BlogEntry.new("some title", :confused, "Some entry text")
)
What error did you get?
Problem solved. I have now face-palmed repeatedly. I was getting an Apache internal server error (500) - a load of HTML in the irb pane. However, this is because I am an idiot I was typing the « character instead of <<
My apologies!
blog << new_entry
needs more explanation. As a noob, I tried a few different ways of running this expression, and just got internal server errors every time. Here's one I tried, which I thought would work: