New Ruby website 1 comment

Posted by stephane Tue, 12 Sep 2006 20:51:00 GMT

For those who haven’t seen yet, the new ruby-lang website is out. Working on it for long time, the members of the community did a great job with this new design and use Radiant CMS to power it.

Please find it and the latest 1.8.5 version of ruby on the website : http://www.ruby-lang.org/en/

Admin interface for Ruby on Rails no comments

Posted by stephane Sat, 02 Sep 2006 18:12:00 GMT

When choosing to develop with RoR instead of django, only one thing was missing : an admin interface. In django when you generate a project you have a small interface to manage your data. In Ruby on Rails you can use the magic scaffold but it’s not very convenient.

The first initiative I have discovered was ajax scaffold generator, an advanced scaffold with some ajax stuff and a real way to integrate an admin interface, but you still have to do it.

Then I found two other projects:

I let you play with these three different projects, for different using.

Typo on mysql no comments

Posted by stephane Sat, 02 Sep 2006 17:27:00 GMT

The default installation is done with a sqlite database. After a corruption of this database I decided to migrate to mysql … It was not a piece of cake.

For those you want to use mysql u should install typo as following :

$ typo install directory database=mysql

Then you will have the installation starting and ending with an error. But you have already a project created.

Execute the db/schema.mysql.sql on your database.

Modify the config/database.yml as you need and relaunch the install. Now the installtion go to the end, set up databse and start mongrel.

That’s all.

Typo installation on Ubuntu Dapper no comments

Posted by stephane Sat, 02 Sep 2006 16:37:00 GMT

I have currently an ubuntu dapper running ruby, rails and gem.

As gem will need to compile some stuff you should do :

$ apt-get install build-essential

Then at first try I had an error :

Building native extensions.  This could take a while...
extconf.rb:1:in `require': no such file to load -- mkmf (LoadError)
    from extconf.rb:1
ERROR:  While executing gem ... (RuntimeError)
ERROR: Failed to build gem native extension.

I found my ruby installation was not complete, then you shall install following packages :

$ apt-get install ruby1.8-dev ruby1.8 ri1.8 rdoc1.8 irb1.8 /
libreadline-ruby1.8 libruby1.8

Installation of typo also needs sqlite3 (you will see, by default the installer creates a database and launchs mongrel)

$ apt-get install libsqlite3-0
$ apt-get install libsqlite3-dev
$ apt-get install sqlite3

Install the ruby sqlite debian packages.

$ apt-get install swig
$ apt-get install libsqlite3-ruby

Now it should work fine :)

$ sudo gem install typo --include-dependencies
$ typo install directory

At this step, the typo installer creates a directory with a full version of typo and embedded rails, creates a database and launch the blog behind mongrel.

To configure Apache, you can find in installer directory and example of the config file need to put in apache. For my configuration with Apache 2 I did the two commands :

$ ap2enmod proxy
$ ap2enmod proxy_http

and change the servername and proxy pass instruction :

ProxyPass / http://localhost:4434/
ProxyPassReverse / http://localhost:4434/

Where 4434 is the port configured by typo during installtion. Now just reload apache and you should see your website with a beautiful azure typo.

Older posts: 1 ... 9 10 11