Want to install rails stack on a machine? Just follow these steps. It will setup a rails stack(Apache + passenger + mysql + ruby + rubygems + common gems + git) on any server(debian based) apt-get update apt-get upgrade -y apt-get -y install build-essential libssl-dev libreadline5-dev zlib1g-dev apt-get -y install mysql-server libmysqlclient15-dev mysql-client apt-get -y install ruby ruby1.8-dev irb ri [ Read More ]
You guys must faced a situation when you need to process large number of records, for example sending newsletters. Then you must have done some sort of batch processing to save it eating up all of your memory. This feature is committed to rails core by DHH. Now you can do something like User.each and User.find_in_batches. Please refer here for [ Read More ]
I just found a very useful plugin role_requirement to manage roles in rails app. RoleRequirement focuses on a simple approach to role-based authentication. RoleRequirement leverages the power of !Ruby to strike a marvelous balance between simplicity and flexibility. Features: * A user can have many roles or one role * Full test helpers to make it easy to test your [ Read More ]