How to Install TabNav Plugin?

Tabnav in action

If you need tabbed navigation on your pages (well who doesn’t? :) ) please read on about cool plugin for Rails. It’s work of Italian guy named Paolo Dona. Documentation is a bit scarce, especially for me. But Paolo helped me himself to get it working.

(more…)

Rails – First Encounter

Finally the porting day has come, I only have little time but that’s better then noting. Besides if I never start, I’ll never get anything done. OK here comes nothing :)

 rails GOSJAR

So far so good. I’ll add it to beanstalk (cool rails app for svn btw.) really quick and get on with it. My first idea was to port database from SQL2005 to MYSQL, I would have to rename a couple of tables to conform to rails pluralisation and that would be it. Then I thought best thing is to port .css and try to work my way from Wilson master pages to Rails layout page. One thing is bothering me – I have custom made tab control to switch between pages. I know there is rails plugin for this, but no clue how to use it, also I have custom breadcrums control that is working beautifully. (more…)

Looking Over THE Fence

I’ve written small application that is supposed to help customers organize things related to the state of their street lights system. Street LightsCustomer usually beeing a city department. If you want to check it out username and password is test/test. One word of caution – it’s in Croatian. I think you can figure it out. It’s written in ASP.NET. Since it was a freelance deal I’ve tried to minimize development time and thus I cutted a lot of corners. (It was a mutual agreement so I’ve charged a lot less, it’s not like it was a rip off or anything). I’ve used subsonic (a bit tuned up to support user roles for scaffold grids – if someone wants this, send me an e-mail, be aware that it’s not the latest subsonic available), (more…)

How to STOP Webrick or Mongrel daemon?

So, you’ve started webrick/mongrel in daemon mode and for some reason you need to kill the process. But how to do it? Mongrel leaves his pid in tmp/pids so you can go there and find out what the PID is. For webrick you don’t have that choice. One choice that you do have is listing procesess and filtering for ruby.

ps aux | grep ruby

There you can see PID that you need and type

kill -9 PID

You don’t need -9 for mongrel, but you do for webrick.