
Or is that what all those tests are really for!!!!
Check out some other great cartoons at xkcd.com
Thanks to Richard Dawkins for reminding me I do have some reasonable opinions!!
Out of the box acts_as_paranoid comes with the ability to define a belongs_to relationship as including deleted records (although to get it to work you need to add require File.dirname(FILE) + ’/lib/caboose/acts/belongs_to_with_deleted_association’ to the init.rb file):
class ModelA < ActiveRecord::Base belongs_to :model_b, :with_deleted => true end
This works quite nicely for that ModelA, but what happens if you want to include the deleted ModelA’s from ModelB through a has_one relationship…… its falls over. However that is easily fixed.
This is a quick bug release to fix the outstanding install error. Sorry for the delay in providing a fix. You should have no problems now running:
rake fckeditor:install
Following on from the content labels chat I had with Paul Walsh (documented here!!!!) I had some further thoughts about adding semantic content to websites.
I seems to me that a lot could be gained if we added something like the tag concept to the actual element itself, then when linking to other sites I could tag the link with meaning.
This would turn the web into a sort of topic map with the links themselves carrying information beyond just being a pointer.
Just a thought……
I was out with Paul Walsh from Segala earlier this week and he was going over the concept of Content Labels. I think this sounds like a very interesting proposal and something I will be more than happy to get behind. He outlines the concept in plain English in this post
It will be very interesting to see how this standard develops. It also got me to thinking how good it would be if we could come up with a ‘Wisdom of the Crowds” version for self certification and to encompass the long, long tail of the web.
So I’m a little late in posting about this, its probably been almost a month since the guys over at GNR (Global Name Registry) pointed me to their new site at freeyourid.com. But, the OpenID movement is just gaining momentum and there is still plenty of time left to go and get your very own .name email and OpenID url.
The site is very slick and well worth a look even if you don’t fancy signing up (although I can’t think of any reason why). You get your id free for 3 months and then its $10 a year, bargain.
So after a lot of work (mostly done by the three other members of the team – Richard White, Lance Ivy and Ed Moss) the new shiny version of AjaxScaffold has reached RC1 and is available under its new name ActiveScaffold.
Richard White gives a bit more info about it on his blog.
This will pretty much draw to a close this blog being used for the docs as AjaxScaffold will get an EOL stamp once ActiveScaffold reaches v1.0. So thank you to all who have given us feedback and supported the project so far.
I haven’t had much cause to play with the Time module in Ruby until today. I have used Time.now quite a bit, but not too much more than that. However, today I had to find the last 6 months names to label a graph and in a short period of time I had come up with this:
months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'] labels = [] 0.upto(5) do |x| labels.unshift(months[Time.now.months_ago(x).month-1]) end
Which I think is pretty neat, especially remembering what a pain it was in Perl last time I had to do it……..
I’m not entirely sure how this has happened, I suspect that RailsPlayground has moved to 1.2.1 (without telling anyone), but it appears that this blog no longer has styles………
Brilliant. My apologies.
Anyway, gonna freeze to 1.1.6 for the mo, so hopefully that should fix it.