How can I determine which attributes are available in a Ruby model object?

By using the »attributes«, »attribute_names«, and »attribute_present?« methods. The first returns a hash of attribute name/value pairs, the second an array of names, and the third returns true if a named attribute is available in this model object.

How can I read the documentation of the installed gem packages?

Execute gem server Go to http://localhost:8808/

How can I install non-gem plugins?

Go to the project root level ./script/plugin install http://url/to/plugin/here

How can I install generators with gem?

List available generators gem search -r generator install the generator gem install {generator_name}

Recommendation how to convert files to another format?

http://media-convert.com/

Recommendation how to read PDF ebooks under Linux?

Use AdobeReader in fullscreen mode on a seperate desktop. Change the desktop with Strg+F1, Strg+F2…

How can I create an exact image of my harddisk on an external disk?

Attention! Check if these are the correct mountpoints!

sudo dd if=/dev/hda of=/dev/sda

To see the copy progress do the following: Get to know the process-id of the running dd command

ps -ax

Open a new terminal window and execute the following:

sudo kill -USR1 {dd-process-id}

Now you can see the copy progress in the terminal [...]

Blog by Category

Blog by Date