This Purple World 0

Posted by ferrisoxide
on Thursday, June 18

Hey folks

Another proto-novel is now online. I’ve been loathe to put this one up for a couple of reasons. When I read the first few pages of this out at a writer’s group meeting years ago you could have heard a pin drop. Eventually a little old lady piped up with “it made me feel sick”. At the coffee break she later said “I guess you were trying to make me feel sick, so I guess it works as a piece of writing” – which I think was terribly nice of her to say.

I’m not convinced that it does work, but it’s out there now and we’ll see how it progresses. I didn’t want it to be the first piece I put up because I didn’t want the content to distract from what I’m trying to achieve in terms of using Rails as a content management system.

Keeping in with the idea that Rails is a language for expressing web sites, I’ve had to extend the language with a helper. I got sick of typing <%= link_to 'next page', :action => 'next_page' %> – indeed as I said I would – so I built a simple helper to remove the repetition. So now each page ends with a <%= link_to_page 'next_page' %>. The convention is that text is the same as the action, with underscores replaced with spaces. I’ll be in trouble if the text varies from this, but it hasn’t so far and I can always fall back to the old link_to approach.

As with The Young Person’s Guide To Time Travel, the code is up on github. The website for the writing can be found here:

http://thispurpleworld.com:

And before you say it, yes I am a sick puppy.

Comments

Leave a response

Comment