Archive for Rails

Updated radiant cms install script.

Follw up on my previous radiant script.

radiant  --database mysql test
# edit config/database.yml
rake production db:bootstrap
radiant --database mysql test
rake production db:bootstrap
git clone git://github.com/radiant/radiant-reorder-extension.git vendor/extensions/reorder
cd vendor/plugins/reorder/
git reset --hard 22ed6cdbb5bd8a3a98badf661f5b0c3bae5f29b0
rake production radiant:extensions:reorder:migrate
rake production radiant:extensions:reorder:update
git clone git://github.com/kbingman/paperclipped.git vendor/extensions/paperclipped
rake production db:migrate:extensions
rake production radiant:extensions:paperclipped:update
git clone git://github.com/MrGossett/radiant_page_meta_extension.git vendor/extensions/page_meta
rake production db:migrate:extensions
# http://github.com/radiant/radiant-reorder-extension/tree/master
# http://www.nabble.com/PageAttachments-migration-looking-for-Admin::PagesController-td21080134.html
# http://github.com/kbingman/paperclipped/tree/master
# Needs sudo apt-get install imagemagick librmagick-ruby1.8

Comments (1)

Radiant CMS Script

Useful script for getting Radiant CMS installed.

I made a couple changes for my setup:

#!/bin/sh
radiant --database sqlite3 $1
cd $1
echo "
production:
  adapter: sqlite3
  database: db/production.sqlite3
test:
  adapter: sqlite3
  database: db/test.sqlite3
development:
  production
" > config/database.yml

svn export http://dev.radiantcms.org/svn/radiant/trunk/extensions/shards vendor/extensions/00_shards
svn export http://svn.seancribbs.com/svn/rails/plugins/extensions/page_attachments vendor/extensions/page_attachments
svn export https://secure.svnrepository.com/s_swanki/open/radiant/extensions/page_meta/tags/v0.1.5 vendor/extensions/page_meta
svn export http://dev.radiantcms.org/svn/radiant/trunk/extensions/reorder/ vendor/extensions/reorder
rake radiant:freeze:edge
vendor/radiant/script/plugin install acts_as_list
rake production db:bootstrap
rake production db:migrate:extensions
rake production radiant:extensions:page_attachments:update
rake production radiant:extensions:reorder:update

Comments (1)

Aptana IDE

Aptana combined with Radrails will make an interesting IDE. Its Javascript debugging looks very powerful.

Technorati Tags: , ,

Comments off

A Mac-esque Rails Development Environment on Windows

A recipe for building a Mac like Rails DE on Windows.

Technorati Tags: ,

Comments off

Streamlined

Streamlined is a framework, on top of Rails, that allows you to quickly generate interfaces for your ActiveRecord models. It started as a way to generate Administrative backends, but has become more general purpose over time.

Check the screencasts, it seems very functional.

Technorati Tags:

Comments off

Radiant CMS

Finally a decent looking Rails CMS system that looks usable: Radiant CMS.

Haven’t really gone down the Modx path yet, so I’ll look at Radiant instead as rails is my prefered web platform. Looks a big rough around the edges at the moment, but has a usable first version.  Couple things I’d probably like to see as major features for my requirements are: i) some sort of assets (pictures, pdfs, or other static files) management interface and ii) a WYSIWYG editor.

The first I might even add myself if the code looks easily.  The second is probably just a matter of time.

Comments off

What (will be) new in Rails 1.1

A blog entry by Scott Raymond on what is new in Rails 1.1.  There is a set of very useful links I need to read later, explaining these features and how to use them.

Comments off

svk sync smerge

Bsag has made some changes and released Tracks 1.03, so I figured it was a good time to try out the smerge process with svk. This article has a good description of thesvk workflow process this involves.

Unfortunately it is a difficult merge due to whitespace formating changes. So it hides any of the real code changes that might have occured. In fact after the merge I had to unrevert some of the changes I made in my local trunk. svk smerge doesn’t seem to be able to view conflicts on a line by line base.

I have svk sync running on crontab, so to mirror branch in the local svk repository is pretty much constantly up to date. Star merging these changes into the local svk development branch and then onto my svn and svk working copies is the next job.

Read the rest of this entry »

Comments (9)

svk and working with external project

I’ve been reading the svk documentation, which is somewhat lacking, working out the best way to setup an external development enviroment for tracks a Rails based GTD project I’ve been contributing too. I’m planning to port the Salted Hash Login Generator to Tracks. Currently I don’t have write access to the track subversion repository, so this lead me to try svk out.

I decided that I wanted a seperate subversion repository from the svk default depot for mirror tracks and tracking my changes. So I followed the basic setup for svk: svk depotmap –init. Then added ‘tracks':/home/svn/tracks via svk depotmap.

Read the rest of this entry »

Comments off

rhtml, vim and rails

Grab and install eruby.vim into ~/.vim/syntax. Then following this tip add:


au BufNewFile,BufRead *.rhtml set syn=eruby

to ~/.vimrc.

While you are at that, make sure you check out HowtoUseVimWithRails.

Comments (5)