Poll sidebar for Typo 1 comment

Posted by stephane Sun, 15 Apr 2007 15:49:00 GMT

First (and last?) sidebar I’ve made for Typo: a poll system. The code it’s at its early development but works. I started by a plugin, I found almost what I need then I wanted to integrate it to my Typo blog… It was more difficult to integrate this piece of code than to type it. And sadly I discovered that Typo is not really good to be extended, at least since you want more interaction between your sidebar with user than from a static page.

Poll sidebar

How to create a plugin no comments

Posted by stephane Fri, 13 Apr 2007 08:44:00 GMT

Create a plugin on rails is the best way to share a features or a code between applications and with others. I found a lot information about how to extend or mixin ActiveRecord, but no information about how to provide a piece of application. Maybe I do wrong but that’s how I did:

Other Rails builders... no comments

Posted by stephane Thu, 12 Apr 2007 08:50:00 GMT

Goldberg

To continue the topic of builders, here we have a web site generator, including user authentication, security, and site navigation, provided by a gem:

$ sudo gem install goldberg_generator -y
$ rails _website_name_
$ cd _website_name_
$ script/generator goldberg _template_
where _template_ is one of the following template:
  • default
  • ewnf
  • snooker
  • spoiled_brat configure config/database.yml then
$ rake goldberg:install

One interesting thing is the possible use of FCKeditor.

Links

First step with Ferret no comments

Posted by stephane Sun, 08 Apr 2007 18:21:00 GMT

If you don’t want to lost your time (about 2 hours for me), don’t understand why your change in your model are not taking in account, and then understand there with a thread that’s cannot be killed then block you model, create the ferret index at startup

In your environment.rb:

require 'ferret'
include Ferret
FERRET_INDEX = Index::Index.new(:path => FERRET_INDEX_DIR)

With FERRET_INDEX_DIR is the path to your index directory and then you can use FERRET_INDEX whereever you want in your application. Later I will deal with how to initialize my index :p

Links for ferret

For those who don’t know ferret, it’s the inspired Lucene of ruby search engine, very powerful and fast:

Older posts: 1 ... 5 6 7 8 9 ... 12