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:
Read MoreHow 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:
Read MoreMailer 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:
Read MoreQuick 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 [...]
Read MoreActiveScaffold: 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 [...]
Read MoreRails: 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:
Read MoreThe 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 => “€”) %>
And here we go
You can also set the [...]
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 [...]
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|
[...]
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 [...]
