Functino

My daily struggle with webdevelopment

Category: Ruby on Rails

Twitter Api with Rails

In a little app that I recently launched I tried to use Twitters API. Turns out it’s incredible easy to do so if you use Ruby on Rails.
Here are the things that I needed to do to get a first version running:
Create a new Rails application. Then create a Model Twitter that extends Rails’ ActiveResource:

class [...]

CakePHP’s setFlash() compared to Rails flash

CakePHP is a great framework. I love it. It’s simple and you can build applications really fast. Anyway, since I also tried Ruby on Rails there are ceratin things that annoy me. Little things. For example the “flash messages”.
What’s that? Here ’s the rails documentation and here’s the cake documentation. You can use the flash [...]

How to deploy a rails application – installing and using mod_rails aka passenger

Ruby on Rails is great and it is really fun to develop with it. But when it comes to deployment it’s hard for a beginner. I tried different approaches, cgi, fastcgi and mod_rails.
I really love mod_rails (also known as passenger), it’s easy to install and to deploy your application: you just need to upload it. [...]