Showing posts with label Rails. Show all posts
Showing posts with label Rails. Show all posts

Sunday, April 15, 2012

Released the Be Vimmer Twitter bot

Yesterday I released a Twitter bot called Be Vimmer.

What is Be Vimmer?

Be Vimmer is a bot application that tweets Vim commands and their usage periodically.


The commands are randomly taken from the Vim Documentation. The number of commands are more than 1000! If you want to be a good Vimmer, follow Be Vimmer and learn lots of Vim commands in your Timeline!

Technical Information

Be Vimmer is running on Heroku Scheduler and Ruby on Rails. If you are interested in that, please visit my Github.

And more

  • As for EX Commands, they appear every 6 hours.
  • Be Vimmer for Japanese and Chinese versions are also available. 
  • The portal site for Be Vimmer is here. But currently not so rich contents... :(
  • I wrote more detailed information in Japanese.
  • Enjoy Vim and Be Vimmer!

Thursday, March 22, 2012

Raw method was moved to OutputSafetyHelper in Rails 3.1 or later

When I upgraded from Rails 3.0 to Rails 3.1, the code below would not work because RawOutputHelper was removed.


include ActionView::Helpers::RawOutputHelper
raw %(#{html_tag})

So I had to change like this.


include ActionView::Helpers::OutputSafetyHelper
raw %(#{html_tag})

Needless to say, using raw method is not a good practice, I know.


NOTE:

I took an example from here before.

http://www.rabbitcreative.com/2010/09/20/rails-3-still-fucking-up-field_with_errors/