Wednesday, November 21, 2012

Rails 3.x - Undoing commands

Controller and Action

In rails 3.x, To create a controller with actions we use this command

$ rails generate controller UserController add edit

If you want to remove the above controller and the actions

$ rails destroy controller User add edit

Model

To create a model in rails 3


$ rails generate model User name:string mobile:string

This can be undone using

$ rails destroy model User

Database migration and rollback

To migrate the state of the database using


$ rake db:migrate

We can undo a single migration by this command

$ rake db:rollback

To go all the way back to the beginning by this command

$ rake db:migrate VERSION=0

These commands may be helpful for reverting controller, model and database migration specific changes.

Tuesday, November 20, 2012

Clutch.IO - Library for native iOS applications

Twitter open-sourced an easy-to-integrate library for native iOS applications which is designed to help you develop faster, deploy instantly and run A/B tests.

Git Source Repository:
https://github.com/clutchio/clutch

AWS - Windows Server 2012

AWS Team announced available of Windows Server 2012. It comes with Free Tier, New Languages, AWS Elastic Beanstalk Support for Windows Server 2012, .NET 4.5 and Visual Studio 2012 Support, etc.

For more information and Getting Started video checkout here.

Source:
http://aws.typepad.com/aws/2012/11/windows-server-2012-now-available-on-aws.html