Jonathan Gnagy's Blog

Rails for everyone!

Listing all entries tagged 'media'. Feed

Media + Blog = Happy

I’ve added the ability for me to upload images to my blog. I designed the feature so I can easily expand it to include other kinds of media, such as Video and Audio, but I just finished the images portion. I figured it would be worth mentioning. Here’s an example:

My Face

The syntax I’m using supports in-line styling, but its not as easy as I’d like it to be. I used the following to display the image:


!{width: 200px;}/blog/images/uploaded/face.jpg(My Face)!

Not exactly the cleanest syntax for using media I manage with a database… Maybe someday, I’ll add support for a special tag, like I do with [code][/code].