Logo

OAuth with OmniAuth and Twitter

4 months ago | Arun Agrawal: Ruby Rockers

Hi Folks, If you want to have OAuth in your Rails Application with twitter. OmniAuth is the best gem to use. OmniAuth provides list of  Strategies to use many OAuth for your application. Here is the List of Strategies. Showing here a Twitter Strategy for OmniAuth. Twitter uses the OAuth 1.0a flow, you can read about [...]

Respond to Custom Formats in Rails

4 months ago | Arun Agrawal: Ruby Rockers

We usually respond some of the known formats in Rails Application like HTML, XML, JavaScript, RSS and some custom. Have you tried to use your own custom format for your Rails Application? Yes you can use your custom format in Rails Application. Here showing a simple Rails Application with responding custom formats. Get a new [...]

X-Request-Id tracking and TaggedLogging in Rails3.2

4 months ago | Arun Agrawal: Ruby Rockers

Rails 3.2 will come with X-Request-Id tracking and TaggedLogging support!! Recently DHH added this feature here! This makes it easy to trace requests from end-to-end in the stack and to identify individual requests in mixed logs. If you have application on SAS model. Where you have logs filled with mixed request for all your customers. [...]

Rails 3.1 and JRuby

5 months ago | Arun Agrawal: Ruby Rockers

Hi Folks, If you are doing any application in which you required JRuby as a platform. You can use Rails3.1 with that. activerecord-jdbc-adapter 1.2.0 is ok with that! All the steps are same as for the normal Rails Application You can find more details here http://blog.jruby.org/2011/09/ar-jdbc-1-2-0-released/   Cheers, Arun

Submit a patch for Rails on Github using “fork and edit button”

6 months ago | Arun Agrawal: Ruby Rockers

Hi Folks, I have recently written about my Rails Contributions experience here. I see that now days contribution is Rails is increased. People love to contribute in Open Source projects. And the way should be easy not painful. I found that some people are struggling in submitting Pull Requests in Rails on Github. So i thought [...]

Serialized Attributes Rails 3

6 months ago | Arun Agrawal: Ruby Rockers

This post will guide you how to do Serialization for your attributes in Rails. Serialize means you want to save arbitrary Ruby data structure into the database. Let consider we have a User model in which we want to store preferences for user in a Ruby data structure format. Previously it was only YAML. class [...]

Rails 3.0.10 and JRuby

7 months ago | Arun Agrawal: Ruby Rockers

Finally, The Rails is coming with template support with JRuby platform. We used to use “-m” option to generate new Rails Application for JRuby platform. Which is no more need now. Just set your platform to JRuby and create a new Rails Application as you do normally and it will generate a Application which is ready [...]

Rails3 application with Jruby

11 months ago | Arun Agrawal: Ruby Rockers

If you are living on edge and you are using Rails3 then you need follow this. Rails3 With JRuby   Hi All, Recently i have started a Rails3 application which will use Jruby. I have gone through some of the steps for that application up and running. If you are using RVM then it’s easy [...]

Use selenium as a script

11 months ago | Arun Agrawal: Ruby Rockers

Hey All, I came with a situation where i need to test things from browser. It nothing to do with the different browsers. It just to check some validations, some messages with some existing data with me. I can’t touch the code base. It’s something like QA work. I am not very much aware about [...]

Gem 1.5 with Rails 2.3

11 months ago | Arun Agrawal: Ruby Rockers

You may fall down into the situation where you don’t have RVM and your system gem is upgraded for using latest things. And your old application is still running on older version of rails. This is just a workaround of using Gem > 1.3.7 in Rails 2.3 Applications. I have tested this solution with Rails [...]

Redis key-value store

11 months ago | Arun Agrawal: Ruby Rockers

Redis is really cool and lightweight key-value store. If you are looking for something in which you can store some string, hashes, lists, sets. The Redis is the best. If you are a Ruby developer then you must try out this with a redis-rb gem. Very easy to configure, very easy to store things. Following is [...]

Bundler Usage — Installing Gems

11 months ago | Arun Agrawal: Ruby Rockers

Every time you change your Gemfile then you might adding/removing any dependancies in your application. Just bundle install will install gems for you. The output may look like $ bundle install Fetching git://github.com/rails/rails.git Fetching source index for http://rubygems.org/ Using rake (0.8.7) Installing abstract (1.0.0) Your bundle is complete! Use `bundle show [gemname]` to see where [...]