Rails console shortcuts
Contact me at LinkedIn  RailsZilla at Facebook  RailsZilla at twitter   google +1  Contact me at Xing  connect me at github

Rails console shortcuts

Posted in console, Rails, Start

I always forget all those handy hints in Ruby on Rails, while using my Rails console. Here I will drop some very useful console commands to get some daily jobs done: Hint No.1 Sometimes we change the code in a file. In that case we can reload the changes in the rails console by using […]

Tags: , ,

git push heroku master is asking for authentication

Posted in console, Start

In this post I show you how to fix the authentication problem with heroku. If you want to deploy your branch to heroku using this command 1$ git push heroku master and git want an authentication like this 12Username for ‘https://git.heroku.com’: Password for ‘https://git.heroku.com’: then the repository is not pushed, because heroku will not allow […]

Tags: , , , , ,

Invalid multibyte char (US-ASCII) Ruby

Posted in console, Ruby

I was playing with Couchbase and plain Ruby in my Terminal. Then I got the error message: 1invalid multibyte char (US-ASCII) If you got this error, you know that this is a result of having special chars. To fix this, you have to add a ‘magic comment’ in the script. Here is a step-by-step instruction […]

Tags: , , ,

Postgresql and TCP/IP connections on port 5432

Posted in coffee break, console

When working with Postgresql, I got the error 1234PG::Error could not connect to server: Connection refused     Is the server running on host "localhost" (127.0.0.1) and accepting     TCP/IP connections on port 5432? This can happen, if you didn’t configure your server specifically. To see if your Postgresql is accepting requests, simply run […]

Tags: , , , , , , ,

VIM shortcuts – get rocked with VIM

Posted in console

First I want to tell you, that I do not like VI or VIM … For editing local files I prefer GEdit or Netbeans if I need an IDE (be cautious when downloading the newest Netbeans, since Netbeans does not support Ruby after Version 6.9) If you are working directly on your server (ugly) then […]

Tags: , , , ,

setting up ssh for your server

Posted in console

SSH (Version 2) Today I have a quick guide for setting up SSH private/private keys. I allways forget to write it down, because i do not use it often (c’mmon guys, how often are you setting up a new server when everything is running …) This post is now my small place for checking up, […]

Tags: , , , , , ,

Copyright © 2011-2017  - RailsZilla – Ruby on Rails tutorials, tips and tricks All rights reserved. | Imprint | Privacy