Rails

Rails – Quick Setup

Step 1 rails new <appname> This rails command takes as an argument the name of the project. It will create a subdirectory called app in the current working directory. The standard database preconfigured is SQLite. If you wish to configure other databases such as mysql, oracle, postgresql, sqlite2, sqlite3, pass the -d or –database=option to

Rails

Ruby – Virtual Attributes

Virtual attributes can be confusing but they help a lot in making things flexible especially when you trying to simplify things while working with Rails. Essentially, we create an attribute that is based on existing attributes. We can also define setter methods for these virtual attributes so that anyone can assign to them, mapping the

Rails