How to: implement the simplest way to fetch friends timeline streams from Twitter in Ruby on Rails

Tags: , ,

If you don’t want the Rails application to connect to the Twitter using OAUTH and just want to display the user’s timeline it can be done in a very simple way using Twitter HTTP authentication. Add two fields in the users table: twitter_username twitter_password After the user provides these two values the tweets from friends [...]

Continue reading » No comments

How to: modify date_select to show text field for year

Tags: ,

The date select Rails helper is great to get the date/month/year data, however sometime it’s required to customize the default functionality in a way which is sometimes not directly available. For this particular requirement, it can be achieved by using some default options and adding some more hack to it… For this, remove the year [...]

Continue reading » 2 Comments

How to: fetch and show the user stream from facebook via facebook connect

Tags: ,

This post assumes we are using the Facebooker plugin to Facebook Connect the Rails application to Facebook. If you want an extended functionality of displaying a user’s stream on in your application, just the Facebook Connect is not going to work. It would be required that our app requests extended facebook permissions from the user. [...]

Continue reading » No comments

How to: merge facebook connect dialog with successive request dialog for extended permissions

Tags: ,

When using the Facebooker plugin for connecting your Rails app with Facebook, it’s simple by using the method fb_login_button and providing a callback url. Since quite sometime, Facebook has restricted the open accessibility of the user’s stream via API even when the user is connected via Facebook Connect. And it requires another permission from the [...]

Continue reading » 1 Comment

How to: logout the facebook connect in Ruby on Rails

Tags: ,

When connecting your Ruby on Rails application with Facebook Connect, it sometimes a problem to have the user properly logout the Rails application and the Facebook Connect’s session as well. If we use the plugin Facebooker the logout is mostly a problem and the issue is that the Facebook cookie is not directly removable by [...]

Continue reading » No comments

How to: manage the deleted records in Ruby on Rails

Tags: , ,

The best way to have organized deleted records, in a full functional easily restorative form in Ruby on Rails applications is to use the gem (or plugin) ActsAsArchive Install the gem sudo gem install acts_as_archive And also add in the application’s gem configuration, by adding the following line in your environment.rb config.gem ‘acts_as_archive’ Add acts_as_archive [...]

Continue reading » No comments

How to: fix error “File is not recognized by the ‘identify’ command”

Tags: , ,

If you are getting this error when using PaperClip to upload files in a Ruby on Rails application, the issue is that PaperClip is not able to call the binary file “identify” on your system. It can simply be fixed by explicitly providing the path to “identify” file on your system in the environment’s config [...]

Continue reading » 3 Comments

How to: start working on Ruby on Rails

Tags:

The knowledge in Ruby Programming Language is really helpful to gain a great control in Ruby on Rails framework. It makes far easy to understand the Rails application’s code and to write much more neat and organized code. To kick start working with a Ruby on Rails, one can easily start with the BaseApp2 http://wiki.github.com/dannyweb/BaseApp2 [...]

Continue reading » No comments