Recent Posts
The Hitchhiker’s Guide to Ruby On Rails Galaxy
Return To Blog Listing
My tech blog Web Development using Ruby On Rails
Recent Posts Tagged With 'hacks'
How to parse a tweet text from Twitter using Ruby to parse-out ‘@’ and ‘#’
Well lot of us love @twitter and also Ruby, and some time work on both And often we need to do the folowing with a tweet Well I had to do the following quite often:- Take out the ‘@’ (i.e. @replies )and ‘#’ (i.e. hashtags ...
Using ERB as a dynamic template to create a file whose contents are dynamic
The following code will create a temporary file for say attaching a vcard file to email.The following code is dynamic to use ERB as a template to create the file dynamically every time with the variable “telephone”,”location”,...
Some changes in Rails2.0
This post is mostly as a reminder to self. There are some changes in Rails 2.0:- 1. SQLite3 is the new default database. So when a rails app is created, by default the database support, which comes preconfigured, is for SQLite3. Though I am not sure ...
Excellent rake task code snippet to completely rebuild & migrate your db
The other day I came across a code snippet which completely automates the re-building and migrating of database. It also run all my rake task for db which I can include in it. All this is done by single line of code. I thought I will share it here. 1...
db:session:create does not seem to work for creating Sessions table
Well we all know when have multiple machines accessing the same session information, we need need to store the session information somewhere so that all the servers can access it. The solution is store the session information in a database and access...
