Rails 3 with RSpec and Factory_Girl

After begun to write the test code in Ruby on Rails with RSpec, but it doesn’t run smoothly as I have encountered several problems. Such as the sign_in method in devise, though it is written in the site, but it doesn’t work in my situation. And I would like to test the user visits my homepage with authentication, I have detailed all the processes which include the fixture. So I decide to use factory_girl.
Continue reading

Advertisements

AddThis

AddThis, which is a very good site, makes u know how many audiences you have.

Choose a style you like, just click Get AddThis button, and you will get this:

<!-- AddThis Button BEGIN -->
<div class="addthis_toolbox addthis_default_style addthis_32x32_style">
<a class="addthis_button_preferred_1"></a>

Continue reading

Textmate

The first time I touch textmate is in my internship in Pyramyd. Seb, who is my chef and a very good and humorous french guy, recommends me to use it. Later, I find that I felt in love with this little app. It is so cool when using Mac to develop Ruby on Rails.

Got from wikipedia: Continue reading

Git commands

Git history (got from wikipedia, funny definition, like geek)

Git is a distributed revision control system with an emphasis on speed. Git was initially designed and developed by Linus Torvalds forLinux kernel development. Every Git working directory is a full-fledged repository with complete history and full revision tracking capabilities, not dependent on network access or a central server. Git’s current software maintenance is overseen by Junio Hamano. Git is free software distributed under the terms of the GNU General Public License version 2.

Linus Torvalds has quipped about the name “git”, which is British English slang for a stupid or unpleasant person: “I’m an egotisticalbastard, and I name all my projects after myself. First Linux, now git.”

Continue reading

Ruby on Rails

Got from wikipedia to start my blog

Ruby on Rails was extracted by DHH from his work on Basecamp, a project management tool by 37signals (now a web application company). Hansson first released Ruby on Rails as open source in July 2004, but did not share commit rights to the project until February 2005.In August 2006 the framework reached a milestone when Apple announced that it would ship Ruby on Rails with Mac OS X v10.5 “Leopard”, which was released in October 2007.

Continue reading