rails
IRC server & channels added!

Since the start of this week, there is an own IRC server running at irc.droom.at (webchat or connect directly with your favourite IRC client) which offers support for:

Rails
jQuery
symfony
HAML / SASS

and sports some fun channels. Check it out and populate the server

Share this on:

Share this on:
  • Print
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Add to favorites
  • email
  • MisterWong
  • MySpace
  • Reddit
  • RSS
  • Yahoo! Bookmarks
Read More
Posted on 19th November 2009No Comments
How HAML changed my (XHTML) life

Using HAML and SASS have streamlined my template and XHTML building in a way I couldn’t imagine. I’ve tried some markup/markdown like textile but HAML is so well integrated into Ruby on Rails, it’s plain amazing. Come on, take a look, I promise you will like that one

Share this on:

Share this on:
  • Print
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Add to favorites
  • email
  • MisterWong
  • MySpace
  • Reddit
  • RSS
  • Yahoo! Bookmarks
Read More
Posted on 12th November 2009No Comments
Mailer HOWTO for Rails

Since sending mails via Rails is – at first sight – a bit tricky, I want to provide you with a quick heads up on how to do that.

Share this on:

Share this on:
  • Print
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Add to favorites
  • email
  • MisterWong
  • MySpace
  • Reddit
  • RSS
  • Yahoo! Bookmarks
Read More
Posted on 5th November 20092 Comments
Quick and Dirty Guide to your 1st Rails app – Part #1

For all of you who want to take a peek at creating a Ruby on Rails application and need a quick start, this post is designed to aid you in getting to know RoR. I will post follow-ups to this to make this first application better and better and to incorporate more complex functionality in [...]

Share this on:
  • Print
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Add to favorites
  • email
  • MisterWong
  • MySpace
  • Reddit
  • RSS
  • Yahoo! Bookmarks
Read More
Posted on 3rd November 20092 Comments
ActiveScaffold: How to get started

When I took a first peek at ActiveScaffold, I had no idea into how much trouble I’d run before creating beautiful AND working backends for my applications. I had LOTS of research to do to get around some rather nasty issues and I want to provide you with some info on how to get stuff [...]

Share this on:
  • Print
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Add to favorites
  • email
  • MisterWong
  • MySpace
  • Reddit
  • RSS
  • Yahoo! Bookmarks
Read More
Posted on 2nd November 20092 Comments
Rails: Predefining date formats

To have a predefined set of date formats (e.g. to make a short version looking like 11/2009 and a long version displaying 01.11.2009 or 2009/11/01) you can define them in config/environment.rb, right after the final end notation:
Time::DATE_FORMATS[:short] = “%d.%m.%Y at %H:%M”Time::DATE_FORMATS[:news] = “%d.%m.%y”

Share this on:

Share this on:
  • Print
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Add to favorites
  • email
  • MisterWong
  • MySpace
  • Reddit
  • RSS
  • Yahoo! Bookmarks
Read More
Posted on 30th October 20092 Comments
The NumberHelper in Rails

Formatting numbers can be a pain in the arse so the Rails team is nice and provides you with NumberHelper (more at http://api.rubyonrails.org/classes/ActionView/Helpers/NumberHelper.html) which takes care of formatting numbers as currencies and much more.
To turn 299.9 into €299.99, simple do that:
<%= number_to_currency(’299.9′, :unit => “&euro;”) %>
And here we go
You can also set the [...]

Share this on:
  • Print
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Add to favorites
  • email
  • MisterWong
  • MySpace
  • Reddit
  • RSS
  • Yahoo! Bookmarks
Read More
Posted on 30th October 2009No Comments
Rails: Integrate FCKEditor with ActiveScaffold

When trying to use tiny_mce with ActiveScaffold I noticed that it is simply impossible due to some JS issues. So I decided to revert back to FCKEditor and came across gramos’ easy fckeditor plugin for rails and AS (get it here).
Good news is, you just need to install it, call rake fckeditor:install and do some [...]

Share this on:
  • Print
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Add to favorites
  • email
  • MisterWong
  • MySpace
  • Reddit
  • RSS
  • Yahoo! Bookmarks
Read More
Posted on 30th October 2009No Comments
Rails: Extracting fixtures from databases

With this simple rake task (put it in lib/tasks/extract_fixtures.rake) you can extract your data from an existing DB to prevent overwriting of data when using rake db:fixtures:load:
desc ‘Create YAML test fixtures from data in an existing database.’
task :extract_fixtures => :environment do
  sql = “SELECT * FROM %s”
  skip_tables = ["schema_info"]
  ActiveRecord::Base.establish_connection
  (ActiveRecord::Base.connection.tables – skip_tables).each do
|table_name|
    [...]

Share this on:
  • Print
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Add to favorites
  • email
  • MisterWong
  • MySpace
  • Reddit
  • RSS
  • Yahoo! Bookmarks
Read More
Posted on 30th October 2009No Comments
Must-have plugins for Rails

When creating applications with Ruby on Rails, I come across the same plugins I need all the time: rich text editor, file uploads, stuff like that.
Here is a quick mashup of useful plugins you might want to check out for your Rails development:
Paperclip:A very streamlined and easy to use file upload – there is also [...]

Share this on:
  • Print
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Add to favorites
  • email
  • MisterWong
  • MySpace
  • Reddit
  • RSS
  • Yahoo! Bookmarks
Read More
Posted on 30th October 2009No Comments